Changeset 3913:7d99a97aed7a in roaraudio for libroar/basic.c


Ignore:
Timestamp:
06/06/10 16:09:03 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to set callback function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/basic.c

    r3882 r3913  
    301301} 
    302302 
     303int roar_set_connection_callback(struct roar_connection * con, 
     304                                 void (*cb)(struct roar_connection * con, 
     305                                            struct roar_message    * mes, 
     306                                            void                   * userdata), 
     307                                 void * userdata) { 
     308 if ( con == NULL ) 
     309  return -1; 
     310 
     311 con->cb       = cb; 
     312 con->userdata = userdata; 
     313 
     314 return 0; 
     315} 
     316 
     317 
    303318int roar_noop         (struct roar_connection * con) { 
    304319 struct roar_message mes; 
Note: See TracChangeset for help on using the changeset viewer.