Revert "UNUSED enc_key_id_{equal,hash}"
[wireshark-sm.git] / wsutil / processes.h
blob8e08a171e3eb589e5ca8f9050e9885f92c141240
1 /** @file
3 * Process utility definitions
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef _WSUTIL_PROCESSES_H_
13 #define _WSUTIL_PROCESSES_H_
15 #include "ws_symbol_export.h"
17 #ifdef _WIN32
19 * On Windows, a process ID is a HANDLE.
20 * Include <windows.h> to make sure HANDLE is defined.
22 #include <windows.h>
23 #else
25 * On UN*X, a process ID is a pid_t.
26 * Include <sys/types.h> to make sure pid_t is defined.
28 #include <sys/types.h>
29 #endif
31 #ifdef __cplusplus
32 extern "C" {
33 #endif /* __cplusplus */
35 #ifdef _WIN32
37 * On Windows, a process ID is a HANDLE.
39 typedef HANDLE ws_process_id;
41 #define WS_INVALID_PID INVALID_HANDLE_VALUE
43 #else
45 * On UN*X, a process ID is a pid_t.
47 typedef pid_t ws_process_id;
49 #define WS_INVALID_PID -1
50 #endif
52 #ifdef __cplusplus
54 #endif /* __cplusplus */
56 #endif /* _WSUTIL_PROCESSES_H_ */