Changes in uspace/lib/c/include/net/modules.h [cc274f5a:96b02eb9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/net/modules.h
rcc274f5a r96b02eb9 49 49 #include <sys/time.h> 50 50 51 /** Converts the data length between different types. 52 * 53 * @param[in] type_from The source type. 54 * @param[in] type_to The destination type. 55 * @param[in] count The number units of the source type size. 56 */ 57 #define CONVERT_SIZE(type_from, type_to, count) \ 58 ((sizeof(type_from) / sizeof(type_to)) * (count)) 59 60 /** Registers the module service at the name server. 61 * 62 * @param[in] me The module service. 63 * @param[out] phonehash The created phone hash. 64 */ 65 #define REGISTER_ME(me, phonehash) \ 66 ipc_connect_to_me(PHONE_NS, (me), 0, 0, (phonehash)) 67 51 68 /** Connect to the needed module function type definition. 52 69 * … … 63 80 extern int connect_to_service(services_t); 64 81 extern int connect_to_service_timeout(services_t, suseconds_t); 82 extern int data_receive(void **, size_t *); 65 83 extern int data_reply(void *, size_t); 66 84 extern void refresh_answer(ipc_call_t *, int *);
Note:
See TracChangeset
for help on using the changeset viewer.