Changeset 5567:6ecf012d7063 in roaraudio for roard/include


Ignore:
Timestamp:
07/16/12 17:02:17 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

roard now tries to auto load missing protocols as plugins (Closes: #275)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/include/client.h

    r5448 r5567  
    8787}; 
    8888 
     89enum roard_proto_type { 
     90 ROARD_PROTO_TYPE_BUILDIN = 0, 
     91 ROARD_PROTO_TYPE_ROARDPROTO = 1, 
     92 ROARD_PROTO_TYPE_COMMON = 2 
     93}; 
     94 
     95struct roard_proto_handle { 
     96 int proto; 
     97 struct roar_dl_lhandle * lhandle; 
     98 enum roard_proto_type type; 
     99 union { 
     100  int buildin; // dummy 
     101  struct roard_proto roardproto; 
     102  // add common here when ready. 
     103 } impl; 
     104}; 
     105 
    89106#define MAX_PROTOS 8 
    90 extern struct roard_proto g_proto[MAX_PROTOS]; 
    91107 
    92108// basic functions 
     
    119135 
    120136// proto support 
     137const struct roard_proto_handle * clients_get_protohandle(const int proto); 
    121138int clients_register_proto  (struct roard_proto * proto, struct roar_dl_lhandle * lhandle); 
    122139int clients_unregister_proto(int proto); 
Note: See TracChangeset for help on using the changeset viewer.