aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_os_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-09-25 22:10:51 +0000
committerChristian Grothoff <christian@grothoff.org>2009-09-25 22:10:51 +0000
commitf1b9c5c115139b02cac1cae4f053792e1e5b1ccb (patch)
treecd9047d73ba498d05f67c7e06ae4bd5ed89511e7 /src/include/gnunet_os_lib.h
parentc2d3d24cd9b4f552d7ca8ad6283f9819c1cfefc7 (diff)
downloadgnunet-f1b9c5c115139b02cac1cae4f053792e1e5b1ccb.tar.gz
gnunet-f1b9c5c115139b02cac1cae4f053792e1e5b1ccb.zip
improving style and docs
Diffstat (limited to 'src/include/gnunet_os_lib.h')
-rw-r--r--src/include/gnunet_os_lib.h50
1 files changed, 48 insertions, 2 deletions
diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h
index 3af4f72a3..3bc6eb5f9 100644
--- a/src/include/gnunet_os_lib.h
+++ b/src/include/gnunet_os_lib.h
@@ -50,11 +50,36 @@ extern "C"
50 */ 50 */
51enum GNUNET_OS_InstallationPathKind 51enum GNUNET_OS_InstallationPathKind
52{ 52{
53 /**
54 * Return the "PREFIX" directory given to configure.
55 */
53 GNUNET_OS_IPK_PREFIX, 56 GNUNET_OS_IPK_PREFIX,
57
58 /**
59 * Return the directory where the program binaries are installed. (bin/)
60 */
54 GNUNET_OS_IPK_BINDIR, 61 GNUNET_OS_IPK_BINDIR,
62
63 /**
64 * Return the directory where libraries are installed. (lib/)
65 */
55 GNUNET_OS_IPK_LIBDIR, 66 GNUNET_OS_IPK_LIBDIR,
67
68 /**
69 * Return the directory where data is installed (share/)
70 */
56 GNUNET_OS_IPK_DATADIR, 71 GNUNET_OS_IPK_DATADIR,
72
73 /**
74 * Return the directory where translations are installed (share/locale/)
75 */
57 GNUNET_OS_IPK_LOCALEDIR, 76 GNUNET_OS_IPK_LOCALEDIR,
77
78 /**
79 * Return the installation directory of this application, not
80 * the one of the overall GNUnet installation (in case they
81 * are different).
82 */
58 GNUNET_OS_IPK_SELF_PREFIX 83 GNUNET_OS_IPK_SELF_PREFIX
59}; 84};
60 85
@@ -64,10 +89,30 @@ enum GNUNET_OS_InstallationPathKind
64 */ 89 */
65enum GNUNET_OS_ProcessStatusType 90enum GNUNET_OS_ProcessStatusType
66{ 91{
92 /**
93 * The process is not known to the OS (or at
94 * least not one of our children).
95 */
67 GNUNET_OS_PROCESS_UNKNOWN, 96 GNUNET_OS_PROCESS_UNKNOWN,
97
98 /**
99 * The process is still running.
100 */
68 GNUNET_OS_PROCESS_RUNNING, 101 GNUNET_OS_PROCESS_RUNNING,
102
103 /**
104 * The process is paused (but could be resumed).
105 */
69 GNUNET_OS_PROCESS_STOPPED, 106 GNUNET_OS_PROCESS_STOPPED,
107
108 /**
109 * The process exited with a return code.
110 */
70 GNUNET_OS_PROCESS_EXITED, 111 GNUNET_OS_PROCESS_EXITED,
112
113 /**
114 * The process was killed by a signal.
115 */
71 GNUNET_OS_PROCESS_SIGNALED 116 GNUNET_OS_PROCESS_SIGNALED
72}; 117};
73 118
@@ -103,10 +148,11 @@ typedef int (*GNUNET_OS_NetworkInterfaceProcessor) (void *cls,
103 148
104/** 149/**
105 * @brief Enumerate all network interfaces 150 * @brief Enumerate all network interfaces
106 * @param callback the callback function 151 * @param proc the callback function
152 * @param proc_cls closure for proc
107 */ 153 */
108void GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor 154void GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor
109 proc, void *cls); 155 proc, void *proc_cls);
110 156
111/** 157/**
112 * Get the current CPU load. 158 * Get the current CPU load.