diff options
| author | 2001-05-14 01:05:58 +0000 | |
|---|---|---|
| committer | 2001-05-14 01:05:58 +0000 | |
| commit | e02dee488a2c3c3ea8374e7bd49e59176eab32dd (patch) | |
| tree | aacc99ac9584e29b2477db7acc3f5e27d54803c3 /src/main.c | |
| parent | Fix macros so that they actually work. (diff) | |
Handle generation number is not automatically advanced with bus reset.
Function raw1394_update_generation() added for manual update.
Bus reset handler get current generation number as argument.
Default bus reset handler calls raw1394_update_generation().
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@60 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -20,8 +20,9 @@ #include "raw1394_private.h" -static int bus_reset_default(struct raw1394_handle *handle) +static int bus_reset_default(struct raw1394_handle *handle, unsigned int gen) { + raw1394_update_generation(handle, gen); return 0; } @@ -124,6 +125,11 @@ unsigned int raw1394_get_generation(struct raw1394_handle *handle) return handle->generation; } +void raw1394_update_generation(struct raw1394_handle *handle, unsigned int gen) +{ + handle->generation = gen; +} + int raw1394_get_nodecount(struct raw1394_handle *handle) { return handle->num_of_nodes; |
