aboutsummaryrefslogtreecommitdiff
path: root/src/util/os_installation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-07 20:54:53 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-07 20:54:53 +0000
commited28dd2141e77aa073d81089cb5a07e0a0fc013c (patch)
tree51caa9ce91662983b6f44fdd3f0a0045a1bf2b32 /src/util/os_installation.c
parent69667eaa594670ae1bb209fda2761798426ec7b1 (diff)
downloadgnunet-ed28dd2141e77aa073d81089cb5a07e0a0fc013c.tar.gz
gnunet-ed28dd2141e77aa073d81089cb5a07e0a0fc013c.zip
expand GNUNET_OS_ProjectData API to also enable de-duplcation of logic for --help
Diffstat (limited to 'src/util/os_installation.c')
-rw-r--r--src/util/os_installation.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c
index 030a935c1..a3f0e63f9 100644
--- a/src/util/os_installation.c
+++ b/src/util/os_installation.c
@@ -58,6 +58,8 @@ static const struct GNUNET_OS_ProjectData default_pd = {
58 .project_dirname = "gnunet", 58 .project_dirname = "gnunet",
59 .binary_name = "gnunet-arm", 59 .binary_name = "gnunet-arm",
60 .env_varname = "GNUNET_PREFIX", 60 .env_varname = "GNUNET_PREFIX",
61 .bug_email = "gnunet-developers@gnu.org",
62 .homepage = "http://www.gnu.org/s/gnunet/",
61}; 63};
62 64
63/** 65/**
@@ -77,6 +79,16 @@ GNUNET_OS_project_data_default (void)
77 79
78 80
79/** 81/**
82 * @return current project data.
83 */
84const struct GNUNET_OS_ProjectData *
85GNUNET_OS_project_data_get ()
86{
87 return current_pd;
88}
89
90
91/**
80 * Setup OS subsystem with project data. 92 * Setup OS subsystem with project data.
81 * 93 *
82 * @param pd project data used to determine paths 94 * @param pd project data used to determine paths