Revision cd21e832 inc/urt_service.h

View differences:

inc/urt_service.h
46 46
 */
47 47
typedef struct urt_service
48 48
{
49
    urt_service_t* next;
50
    urt_serviceid_t id;
51
    urt_osMutex_t lock;
52
    urt_servicefunc_t* callback;
53
    #if (URT_CFG_RPC_PROFILING)
54
        uint64_t sumDurations;
55
        uint64_t numCalls;
56
        uint64_t numTimeouts;
57
        urt_delay_t minDuration;
58
        urt_delay_t maxDuration;
59
    #endif /* URT_CFG_RPC_PROFILING */
49
  urt_service_t* next;
50
  urt_serviceid_t id;
51
  urt_osMutex_t lock;
52
  urt_servicefunc_t* callback;
53
  #if (URT_CFG_RPC_PROFILING)
54
    uint64_t sumDurations;
55
    uint64_t numCalls;
56
    uint64_t numTimeouts;
57
    urt_delay_t minDuration;
58
    urt_delay_t maxDuration;
59
  #endif /* URT_CFG_RPC_PROFILING */
60 60
}urt_service_t;
61 61

  
62 62
/******************************************************************************/
......
71 71
extern "C" {
72 72
#endif /* defined(__cplusplus) */
73 73

  
74
    urt_status_t urtServiceInit(urt_service_t* service, urt_serviceid_t id, urt_servicefunc_t* callback);
75
    urt_status_t urtServiceCall(urt_service_t* service, void* arg, void* ret, urt_delay_t timeout);
74
  urt_status_t urtServiceInit(urt_service_t* service, urt_serviceid_t id, urt_servicefunc_t* callback);
75
  urt_status_t urtServiceCall(urt_service_t* service, void* arg, void* ret, urt_delay_t timeout);
76 76
#if defined(__cplusplus)
77 77
}
78 78
#endif /* defined(__cplusplus) */

Also available in: Unified diff