Changeset 5275:811818eb5b81 in roaraudio for roard/include


Ignore:
Timestamp:
11/19/11 22:54:26 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Improved plugin loader a lot (Closes: #190)

Location:
roard/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/include/client.h

    r5192 r5275  
    7676struct roard_proto { 
    7777 int proto; 
     78 int subsystems; 
     79 const char * description; 
    7880 int (*new_client)(int client, struct roar_vio_calls * vio, struct roard_listen * lsock); 
    7981 int (*check_client)(int client, struct roar_vio_calls * vio); 
     
    114116 
    115117// proto support 
    116 int clients_register_proto(struct roard_proto * proto); 
     118int clients_register_proto  (struct roard_proto * proto); 
     119int clients_unregister_proto(int proto); 
     120void print_protolist        (enum output_format format); 
    117121 
    118122// stream functions 
  • roard/include/plugins.h

    r5266 r5275  
    2929#include <roaraudio.h> 
    3030 
     31#define ROARD_DL_APPNAME    "roard <0/RoarAudio>" 
     32#define ROARD_DL_ABIVERSION NULL 
     33 
    3134struct roard_plugins_sched { 
    3235 int (*init)(void); 
     
    4043int plugins_update   (void); 
    4144 
    42 int plugins_load     (const char * filename); 
     45int plugins_load     (const char * filename, const char * args); 
    4346 
    4447int plugins_reg_sched(struct roard_plugins_sched * sched); 
     
    6265 ROARD_DL_REG__UNI_POST 
    6366 
     67// Register Scheduler callbacks: 
    6468#define ROARD_DL_REGFN_SCHED() ROAR_DL_PLUGIN_REG(ROAR_DL_FN_ROARDSCHED, __reg_sched) 
    6569 
     
    7074 ROARD_DL_REG__UNI_POST 
    7175 
     76// Register Protocol callbacks: 
    7277#define ROARD_DL_REGFN_PROTO() ROAR_DL_PLUGIN_REG(ROAR_DL_FN_PROTO, __reg_proto) 
     78 
     79// Check version: 
     80#define ROARD_DL_CHECK_VERSIONS() ROAR_DL_PLUGIN_CHECK_VERSIONS(ROARD_DL_APPNAME, ROARD_DL_ABIVERSION) 
    7381 
    7482#endif 
Note: See TracChangeset for help on using the changeset viewer.