Changeset 5880:0a5f9633d5ea in roaraudio


Ignore:
Timestamp:
01/25/13 13:08:25 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

updated prototype

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/services.h

    r5879 r5880  
    173173 // rv is the return POSIX return code. 
    174174 // a value of zero means no error. 
    175  // a value smaller than zero is not allowed. 
     175 // a value of -1 means the provider should decide the value 
     176 // based on the other parameters. 
     177 // a value smaller than -1 is not allowed. 
    176178 // all other values indicate some kind of error. 
    177  int (*exit)(int rv); 
     179 // error and msg give a closer information why the process is terminated. 
     180 // those can be be used in case rv is set to -1. they can also be printed 
     181 // or logged by the the provider for later inspection. 
     182 int (*exit)(int rv, int error, const char * msg); 
     183 
    178184 
    179185 // optional functions follow: 
Note: See TracChangeset for help on using the changeset viewer.