Subversion Repositories HelenOS

Rev

Rev 3466 | Rev 3846 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3466 Rev 3666
Line 31... Line 31...
31
 */
31
 */
32
 
32
 
33
/** @file
33
/** @file
34
 */
34
 */
35
 
35
 
36
#include <errno.h>
-
 
37
#include <ipc/ipc.h>
36
#include <ipc/ipc.h>
38
#include <ipc/services.h>
37
#include <ipc/services.h>
39
 
38
 
40
#define ERROR_NAME          error_check_return_value
-
 
41
#define ERROR_DECLARE           int ERROR_NAME
-
 
42
#define ERROR_OCCURED( value )      (( ERROR_NAME = ( value )) != EOK )
-
 
43
#define ERROR_PROPAGATE( value )    if( ERROR_OCCURED( value )) return ERROR_NAME
-
 
44
 
-
 
45
#define REGISTER_ME( me, phonehash )    ipc_connect_to_me( PHONE_NS, ( me ), 0, 0, ( phonehash ))
39
#define REGISTER_ME( me, phonehash )    ipc_connect_to_me( PHONE_NS, ( me ), 0, 0, ( phonehash ))
46
 
40
 
47
int connect_to_service( services_t need );
41
int connect_to_service( services_t need );
48
int start_service( services_t me, services_t need[], int * need_phone[], void ( * client_connection )( ipc_callid_t iid, ipc_call_t * icall ), int ( * initialize_me )( void ));
42
int start_service( services_t me, services_t need[], int * need_phone[], void ( * client_connection )( ipc_callid_t iid, ipc_call_t * icall ), int ( * initialize_me )( void ));
49
 
43