Changeset 5296:b7fd2c45243e in roaraudio for include
- Timestamp:
- 11/25/11 02:27:12 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/libroar/basic.h
r5270 r5296 47 47 #endif 48 48 49 #define ROAR_CON_FLAGS_NONE 0x00 50 #define ROAR_CON_FLAGS_FH 0x01 /* obsoleted */ 51 #define ROAR_CON_FLAGS_VIO 0x02 /* mandatory */ 52 #define ROAR_CON_FLAGS_ISCLIENT 0x04 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 */ 49 #define ROAR_CON_FLAGS_NONE 0x00000000UL 50 #define ROAR_CON_FLAGS_FH 0x00000001UL /* obsoleted */ 51 #define ROAR_CON_FLAGS_VIO 0x00000002UL /* mandatory */ 52 #define ROAR_CON_FLAGS_ISCLIENT 0x00000004UL 53 #define ROAR_CON_FLAGS_SUPPORT_V2 0x00000008UL /* mandatory if con.version == 2 */ 54 #define ROAR_CON_FLAGS_SUPPORT_EF 0x00000010UL /* Both peers support error frames */ 55 #define ROAR_CON_FLAGS_FREESELF 0x00000020UL /* Free the connection object */ 55 56 56 57 struct roar_message { … … 67 68 }; 68 69 70 struct roar_stds; // "caps.h" will be included later. 71 69 72 struct roar_connection { 70 73 size_t refc; 71 74 uint32_t flags; 72 75 int version; 73 struct roar_vio_calls viocon; 76 struct roar_vio_calls * viocon; 77 struct roar_vio_calls viocon_store; 74 78 struct roar_error_frame errorframe; 75 79 void * cb_userdata; 76 80 void (*cb)(struct roar_connection * con, struct roar_message * mes, void * data, void * userdata); 81 struct roar_stds * server_stds; 82 char * server_name; 77 83 }; 78 84 … … 84 90 int roar_get_connection_fh (struct roar_connection * con); 85 91 struct roar_vio_calls * roar_get_connection_vio2 (struct roar_connection * con); 86 int roar_disconnect (struct roar_connection * con); 92 const char * roar_get_connection_server(struct roar_connection * con); 93 int roar_connectionref(struct roar_connection * con); 94 int roar_connectionunref(struct roar_connection * con); 95 #define roar_disconnect(x) roar_connectionunref((x)) 87 96 88 97 int roar_set_connection_callback(struct roar_connection * con,
Note: See TracChangeset
for help on using the changeset viewer.