Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/net/modules.h

    r64d2b10 rc7a8442  
    4343
    4444#include <async.h>
     45
     46#include <ipc/ipc.h>
    4547#include <ipc/services.h>
     48
    4649#include <sys/time.h>
     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))
    4767
    4868/** Connect to the needed module function type definition.
    4969 *
    50  * @param[in] need The needed module service.
    51  *
    52  * @return The phone of the needed service.
    53  *
     70 * @param[in] need      The needed module service.
     71 * @returns             The phone of the needed service.
    5472 */
    5573typedef int connect_module_t(services_t need);
    5674
    57 extern void answer_call(ipc_callid_t, int, ipc_call_t *, size_t);
    58 extern int bind_service(services_t, sysarg_t, sysarg_t, sysarg_t,
     75extern void answer_call(ipc_callid_t, int, ipc_call_t *, int);
     76extern int bind_service(services_t, ipcarg_t, ipcarg_t, ipcarg_t,
    5977    async_client_conn_t);
    60 extern int bind_service_timeout(services_t, sysarg_t, sysarg_t, sysarg_t,
     78extern int bind_service_timeout(services_t, ipcarg_t, ipcarg_t, ipcarg_t,
    6179    async_client_conn_t, suseconds_t);
    6280extern int connect_to_service(services_t);
    6381extern int connect_to_service_timeout(services_t, suseconds_t);
     82extern int data_receive(void **, size_t *);
    6483extern int data_reply(void *, size_t);
    65 extern void refresh_answer(ipc_call_t *, size_t *);
     84extern void refresh_answer(ipc_call_t *, int *);
    6685
    6786#endif
Note: See TracChangeset for help on using the changeset viewer.