diff options
Diffstat (limited to 'xpp/xbus-core.h')
-rw-r--r-- | xpp/xbus-core.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xpp/xbus-core.h b/xpp/xbus-core.h index d7df05a..d1a3167 100644 --- a/xpp/xbus-core.h +++ b/xpp/xbus-core.h @@ -28,9 +28,11 @@ #define XFRAME_DATASIZE 512 struct xframe { + struct list_head frame_list; atomic_t frame_len; xbus_t *xbus; struct timeval tv_created; + struct timeval tv_received; byte *packets; /* max XFRAME_DATASIZE */ }; @@ -69,7 +71,7 @@ xpacket_t *xframe_next_packet(xframe_t *xframe, int len); xbus_t *xbus_of(int xbus_num); xpd_t *xpd_of(const xbus_t *xbus, int xpd_num); xpd_t *xpd_byaddr(const xbus_t *xbus, uint unit, uint subunit); -xbus_t *xbus_new(xbus_ops_t *ops); +xbus_t *xbus_new(xbus_ops_t *ops, size_t xframe_size); void xbus_remove(xbus_t *xbus); void xbus_activate(xbus_t *xbus); void xbus_disconnect(xbus_t *xbus); |