Changeset 5576:a98545bcc3f1 in roaraudio for roard/include/client.h


Ignore:
Timestamp:
07/21/12 16:05:33 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Support a common protocol interface (Closes: #257)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/include/client.h

    r5571 r5576  
    9797 struct roar_dl_lhandle * lhandle; 
    9898 enum roard_proto_type type; 
     99 const struct roar_keyval * para; 
     100 ssize_t paralen; 
    99101 union { 
    100102  int buildin; // dummy 
    101103  struct roard_proto roardproto; 
    102104  // add common here when ready. 
     105  const struct roar_dl_proto * common; 
    103106 } impl; 
    104107}; 
     
    139142// proto support 
    140143const struct roard_proto_handle * clients_get_protohandle(const int proto); 
     144int clients_register_proto_common(const struct roar_dl_proto * proto, struct roar_dl_lhandle * lhandle); 
    141145int clients_register_proto  (struct roard_proto * proto, struct roar_dl_lhandle * lhandle); 
    142146int clients_unregister_proto(int proto); 
Note: See TracChangeset for help on using the changeset viewer.