Changeset 5231:8b30ddb689b8 in roaraudio for include


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

first updates to connection object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/basic.h

    r5230 r5231  
    4848 
    4949#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 */ 
    5252#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 */ 
    5455 
    5556struct roar_message { 
     
    6768 
    6869struct roar_connection { 
    69  int __fh; 
    70  int32_t flags; 
     70 size_t refc; 
     71 uint32_t flags; 
     72 int version; 
    7173 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); 
    7577}; 
    7678 
     
    8385int roar_connect_fh   (struct roar_connection * con, int fh); 
    8486int 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; 
    8687struct roar_vio_calls * roar_get_connection_vio2 (struct roar_connection * con); 
    8788int roar_disconnect   (struct roar_connection * con); 
     
    9091                                 void (*cb)(struct roar_connection * con, 
    9192                                            struct roar_message    * mes, 
     93                                            void                   * data, 
    9294                                            void                   * userdata), 
    9395                                 void * userdata); 
Note: See TracChangeset for help on using the changeset viewer.