Changeset 5296:b7fd2c45243e in roaraudio for include


Ignore:
Timestamp:
11/25/11 02:27:12 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Updated connection object. (Closes: #188)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/basic.h

    r5270 r5296  
    4747#endif 
    4848 
    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 */ 
    5556 
    5657struct roar_message { 
     
    6768}; 
    6869 
     70struct roar_stds; // "caps.h" will be included later. 
     71 
    6972struct roar_connection { 
    7073 size_t refc; 
    7174 uint32_t flags; 
    7275 int version; 
    73  struct roar_vio_calls viocon; 
     76 struct roar_vio_calls * viocon; 
     77 struct roar_vio_calls   viocon_store; 
    7478 struct roar_error_frame errorframe; 
    7579 void * cb_userdata; 
    7680 void (*cb)(struct roar_connection * con, struct roar_message * mes, void * data, void * userdata); 
     81 struct roar_stds * server_stds; 
     82 char * server_name; 
    7783}; 
    7884 
     
    8490int roar_get_connection_fh  (struct roar_connection * con); 
    8591struct roar_vio_calls * roar_get_connection_vio2 (struct roar_connection * con); 
    86 int roar_disconnect   (struct roar_connection * con); 
     92const char * roar_get_connection_server(struct roar_connection * con); 
     93int roar_connectionref(struct roar_connection * con); 
     94int roar_connectionunref(struct roar_connection * con); 
     95#define roar_disconnect(x) roar_connectionunref((x)) 
    8796 
    8897int roar_set_connection_callback(struct roar_connection * con, 
Note: See TracChangeset for help on using the changeset viewer.