fixup prototypes/linkage

This commit is contained in:
Doug MacEachern 2008-03-07 18:01:00 +00:00
parent 69712ba607
commit ee41ce16d2
3 changed files with 12 additions and 4 deletions

View File

@ -556,6 +556,10 @@ struct sigar_t {
int winnt; int winnt;
}; };
#ifdef __cplusplus
extern "C" {
#endif
int sigar_wsa_init(sigar_t *sigar); int sigar_wsa_init(sigar_t *sigar);
int sigar_proc_exe_peb_get(sigar_t *sigar, HANDLE proc, int sigar_proc_exe_peb_get(sigar_t *sigar, HANDLE proc,
@ -583,9 +587,13 @@ typedef struct {
SC_HANDLE handle; SC_HANDLE handle;
} sigar_services_status_t; } sigar_services_status_t;
int sigar_services_status_get(sigar_services_status_t *ess, DWORD state); int sigar_services_status_get(sigar_services_status_t *ss, DWORD state);
void sigar_services_status_close(sigar_services_status_t *ess); void sigar_services_status_close(sigar_services_status_t *ss);
#ifdef __cplusplus
}
#endif
#define SIGAR_NO_SUCH_PROCESS (SIGAR_OS_START_ERROR+1) #define SIGAR_NO_SUCH_PROCESS (SIGAR_OS_START_ERROR+1)

View File

@ -3408,7 +3408,7 @@ int sigar_service_pid_get(sigar_t *sigar, char *name, sigar_pid_t *pid)
return rc; return rc;
} }
int sigar_services_status(sigar_services_status_t *ss, DWORD state) int sigar_services_status_get(sigar_services_status_t *ss, DWORD state)
{ {
DWORD bytes, resume=0; DWORD bytes, resume=0;
BOOL retval; BOOL retval;

View File

@ -761,7 +761,7 @@ static int ptql_pid_service_list_get(sigar_t *sigar,
DWORD i, status; DWORD i, status;
SIGAR_ZERO(&ss); SIGAR_ZERO(&ss);
status = sigar_services_status(&ss, SERVICE_ACTIVE); status = sigar_services_status_get(&ss, SERVICE_ACTIVE);
if (status != SIGAR_OK) { if (status != SIGAR_OK) {
return status; return status;
} }