summaryrefslogtreecommitdiff
path: root/wsutil/privileges.h
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2013-02-28 14:09:46 +0000
committerBalint Reczey <balint@balintreczey.hu>2013-02-28 14:09:46 +0000
commit45c2884f1bbd9c06f7ba3091d968fcb6649a5f56 (patch)
treebb66eea36a288f1ab5e33468ee9bf2989339b2aa /wsutil/privileges.h
parent018ba4ea6584f63aa5c4b741c2e6f6fedc609ad2 (diff)
downloadwireshark-45c2884f1bbd9c06f7ba3091d968fcb6649a5f56.tar.gz
Export libwsutil symbols using WS_DLL_PUBLIC define
This change replaces *.def and *.sym file usage following the guideline at http://gcc.gnu.org/wiki/Visibility svn path=/trunk/; revision=47938
Diffstat (limited to 'wsutil/privileges.h')
-rw-r--r--wsutil/privileges.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/wsutil/privileges.h b/wsutil/privileges.h
index 9d7474d878..231f3e34bc 100644
--- a/wsutil/privileges.h
+++ b/wsutil/privileges.h
@@ -25,6 +25,8 @@
#ifndef __PRIVILEGES_H__
#define __PRIVILEGES_H__
+#include "ws_symbol_export.h"
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -33,6 +35,7 @@ extern "C" {
* Called when the program starts, to enable security features and save
* whatever credential information we'll need later.
*/
+WS_DLL_PUBLIC
extern void init_process_policies(void);
/**
@@ -41,6 +44,7 @@ extern void init_process_policies(void);
* @return TRUE if the program was started with special privileges,
* FALSE otherwise.
*/
+WS_DLL_PUBLIC
extern gboolean started_with_special_privs(void);
/**
@@ -49,12 +53,14 @@ extern gboolean started_with_special_privs(void);
* @return TRUE if the program is running with special privileges,
* FALSE otherwise.
*/
+WS_DLL_PUBLIC
extern gboolean running_with_special_privs(void);
/**
* Permanently relinquish special privileges. get_credential_info()
* MUST be called before calling this.
*/
+WS_DLL_PUBLIC
extern void relinquish_special_privs_perm(void);
/**
@@ -62,6 +68,7 @@ extern void relinquish_special_privs_perm(void);
* @return A freshly g_alloc()ed string containing the username,
* or "UNKNOWN" on failure.
*/
+WS_DLL_PUBLIC
extern gchar *get_cur_username(void);
/**
@@ -69,6 +76,7 @@ extern gchar *get_cur_username(void);
* @return A freshly g_alloc()ed string containing the group,
* or "UNKNOWN" on failure.
*/
+WS_DLL_PUBLIC
extern gchar *get_cur_groupname(void);
#ifdef _WIN32
@@ -77,6 +85,7 @@ extern gchar *get_cur_groupname(void);
* @return TRUE if npf.sys is running, FALSE if it's not or if there was
* an error checking its status.
*/
+WS_DLL_PUBLIC
extern gboolean npf_sys_is_running();
#endif