Changeset 5640:00dd1147ce70 in roaraudio for roard/include


Ignore:
Timestamp:
09/10/12 16:18:22 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Removed support for roard's proto support (replaced by CPI) (Closes: #278)

Location:
roard/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • roard/include/client.h

    r5607 r5640  
    8989enum roard_proto_type { 
    9090 ROARD_PROTO_TYPE_BUILDIN = 0, 
    91  ROARD_PROTO_TYPE_ROARDPROTO = 1, 
     91// ROARD_PROTO_TYPE_ROARDPROTO = 1, // old. Removed in 1.0beta6. 
    9292 ROARD_PROTO_TYPE_COMMON = 2 
    9393}; 
     
    101101 union { 
    102102  int buildin; // dummy 
    103   struct roard_proto roardproto; 
    104   // add common here when ready. 
    105103  const struct roar_dl_proto * common; 
    106104 } impl; 
     
    143141const struct roard_proto_handle * clients_get_protohandle(const int proto); 
    144142int clients_register_proto_common(const struct roar_dl_proto * proto, struct roar_dl_lhandle * lhandle); 
    145 int clients_register_proto  (struct roard_proto * proto, struct roar_dl_lhandle * lhandle); 
    146143int clients_unregister_proto(int proto); 
    147144void print_protolist        (enum output_format format); 
  • roard/include/emul_esd.h.OLD

    r5381 r5640  
    4848 
    4949int emul_esd_exec_command  (int client, int cmd, struct roar_vio_calls * vio); 
    50 int emul_esd_check_client  (int client, struct roar_vio_calls * vio); 
     50int emul_esd_check_client  (int client, struct roar_vio_calls * vio, struct roar_buffer ** obuffer, void ** userdata, const struct roar_keyval * protopara, ssize_t protoparalen, struct roar_dl_librarypara * pluginpara); 
    5151 
    5252int emul_esd_int_read_buf  (int client, int * data, void * buf); 
  • roard/include/emul_gopher.h.OLD

    r5381 r5640  
    2929#include <roaraudio.h> 
    3030 
    31 int emul_gopher_check_client(int client, struct roar_vio_calls * vio); 
    32 int emul_gopher_flushed_client(int client, struct roar_vio_calls * vio); 
     31int emul_gopher_check_client(int client, struct roar_vio_calls * vio, struct roar_buffer ** obuffer, void ** userdata, const struct roar_keyval * protopara, ssize_t protoparalen, struct roar_dl_librarypara * pluginpara); 
     32int emul_gopher_flushed_client(int client, struct roar_vio_calls * vio, struct roar_buffer ** obuffer, void ** userdata, const struct roar_keyval * protopara, ssize_t protoparalen, struct roar_dl_librarypara * pluginpara); 
    3333 
    3434#endif 
  • roard/include/emul_rplay.h.OLD

    r5381 r5640  
    3939}; 
    4040 
    41 int emul_rplay_check_client  (int client, struct roar_vio_calls * vio); 
     41int emul_rplay_check_client  (int client, struct roar_vio_calls * vio, struct roar_buffer ** obuffer, void ** userdata, const struct roar_keyval * protopara, ssize_t protoparalen, struct roar_dl_librarypara * pluginpara); 
    4242 
    4343int emul_rplay_exec_command  (int client, struct roar_vio_calls * vio, char * command); 
  • roard/include/plugins.h

    r5639 r5640  
    4141void print_pluginlist(enum output_format format); 
    4242 
    43 int plugins_reg_proto(struct roard_proto         * proto); 
    44  
    45 #define ROARD_DL_REG__UNI_PRE(name) \ 
    46  static int __reg_ ## name(struct roar_dl_librarypara * para, struct roar_dl_libraryinst * lib) { \ 
    47   size_t i; \ 
    48  \ 
    49   (void)para, (void)lib; 
    50  
    51 #define ROARD_DL_REG__UNI_POST \ 
    52  \ 
    53   return 0; \ 
    54  } 
    55  
    56 #define ROARD_DL_REG_PROTO(proto) \ 
    57  ROARD_DL_REG__UNI_PRE(proto) \ 
    58   for (i = 0; i < (sizeof((proto))/sizeof(*(proto))); i++) \ 
    59    plugins_reg_proto(&((proto)[i])); \ 
    60  ROARD_DL_REG__UNI_POST 
    61  
    62 // Register Protocol callbacks: 
    63 #define ROARD_DL_REGFN_PROTO() ROAR_DL_PLUGIN_REG(ROAR_DL_FN_PROTO, __reg_proto) 
    64  
    6543// Check version: 
    6644#define ROARD_DL_CHECK_VERSIONS() ROAR_DL_PLUGIN_CHECK_VERSIONS(ROARD_DL_APPNAME, ROARD_DL_ABIVERSION) 
Note: See TracChangeset for help on using the changeset viewer.