Changeset 5735:98e080acad16 in roaraudio for include


Ignore:
Timestamp:
11/07/12 13:46:25 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added Common Service Interface (CSI)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/roardl.h

    r5734 r5735  
    370370#define ROAR_DL_PROTO_SIZE     sizeof(struct roar_dl_proto) 
    371371 
     372 
     373// Common Service Interface (CSI): 
     374struct roar_dl_service { 
     375 // Name and ABI version of the application: 
     376 // if appname is NULL this is a /universal/ service. 
     377 // Such services MUST use APIs defined by the RoarAudio Project. 
     378 // If a random Vendor needs a API universal to own applications 
     379 // it should define a virtual application name for this. 
     380 const char * appname; 
     381 const char * appabi; 
     382 // Name and ABI/API version of service: 
     383 const char * servicename; 
     384 const char * serviceabi; 
     385 // Description: 
     386 const char * description; 
     387 // Flags (see below for defined flags): 
     388 const int    flags; 
     389 // Userdata: 
     390 // This is some kind of constant data. 
     391 // It can bed used ba the functions below for internal stuff. 
     392 const char * userdata; 
     393 // Functions: 
     394 // get_api returns a pointer to a struct with the API. 
     395 // The api is specific to [appname, appabi, servicename, serviceabi]. 
     396 const void * (*get_api)(struct roar_dl_service * service, struct roar_dl_librarypara * para); 
     397}; 
     398 
     399#define ROAR_DL_SERVICE_FLAGS_NONE         0x0000 
     400 
     401#define ROAR_DL_SERVICE_SUBTYPE  0 
     402#define ROAR_DL_SERVICE_VERSION  0 
     403#define ROAR_DL_SERVICE_SIZE     sizeof(struct roar_dl_service) 
     404 
    372405// Reg FN: 
    373406 
Note: See TracChangeset for help on using the changeset viewer.