Changeset 5231:8b30ddb689b8 in roaraudio for include/libroar/basic.h
- Timestamp:
- 11/12/11 14:31:25 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/basic.h
r5230 r5231 48 48 49 49 #define ROAR_CON_FLAGS_NONE 0x00 50 #define ROAR_CON_FLAGS_FH 0x01 51 #define ROAR_CON_FLAGS_VIO 0x02 50 #define ROAR_CON_FLAGS_FH 0x01 /* obsoleted */ 51 #define ROAR_CON_FLAGS_VIO 0x02 /* mandatory */ 52 52 #define ROAR_CON_FLAGS_ISCLIENT 0x04 53 #define ROAR_CON_FLAGS_SUPPORT_V2 0x08 53 #define ROAR_CON_FLAGS_SUPPORT_V2 0x08 /* mandatory if con.version == 2 */ 54 #define ROAR_CON_FLAGS_SUPPORT_EF 0x10 /* Both peers support error frames */ 54 55 55 56 struct roar_message { … … 67 68 68 69 struct roar_connection { 69 int __fh; 70 int32_t flags; 70 size_t refc; 71 uint32_t flags; 72 int version; 71 73 struct roar_vio_calls viocon; 72 struct roar_ buffer * msgqueue;73 void * userdata;74 void (*cb)(struct roar_connection * con, struct roar_message * mes, void * userdata);74 struct roar_error_frame errorframe; 75 void * cb_userdata; 76 void (*cb)(struct roar_connection * con, struct roar_message * mes, void * data, void * userdata); 75 77 }; 76 78 … … 83 85 int roar_connect_fh (struct roar_connection * con, int fh); 84 86 int roar_get_connection_fh (struct roar_connection * con); 85 int roar_get_connection_vio (struct roar_connection * con, struct roar_vio_calls * vio) _LIBROAR_ATTR_DEPRECATED;86 87 struct roar_vio_calls * roar_get_connection_vio2 (struct roar_connection * con); 87 88 int roar_disconnect (struct roar_connection * con); … … 90 91 void (*cb)(struct roar_connection * con, 91 92 struct roar_message * mes, 93 void * data, 92 94 void * userdata), 93 95 void * userdata);
Note: See TracChangeset
for help on using the changeset viewer.