Subversion Repositories HelenOS

Rev

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

Rev 3666 Rev 3846
Line 31... Line 31...
31
 */
31
 */
32
 
32
 
33
/** @file
33
/** @file
34
 */
34
 */
35
 
35
 
-
 
36
#include <async.h>
-
 
37
 
36
#include <ipc/ipc.h>
38
#include <ipc/ipc.h>
37
#include <ipc/services.h>
39
#include <ipc/services.h>
38
 
40
 
-
 
41
/** Converts the data length between different types.
-
 
42
 *  @param type_from The source type. Input parameter.
-
 
43
 *  @param type_to The destination type. Input parameter.
-
 
44
 *  @param count The number units of the source type size. Input parameter.
-
 
45
 */
-
 
46
#define CONVERT_SIZE( type_from, type_to, count )   (( sizeof( type_from ) / sizeof( type_to )) * ( count ))
-
 
47
 
39
#define REGISTER_ME( me, phonehash )    ipc_connect_to_me( PHONE_NS, ( me ), 0, 0, ( phonehash ))
48
#define REGISTER_ME( me, phonehash )    ipc_connect_to_me( PHONE_NS, ( me ), 0, 0, ( phonehash ))
40
 
49
 
41
int connect_to_service( services_t need );
50
int connect_to_service( services_t need );
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 ));
51
int bind_service( services_t need, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, async_client_conn_t client_receiver );
43
 
52
 
44
/** @}
53
/** @}
45
 */
54
 */