summaryrefslogtreecommitdiff
path: root/include/utsname.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-05-12 19:14:46 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-05-12 19:14:46 +0200
commit13c2b4b36ee970e01db734c4b0693189c39a7a3d (patch)
tree9fd54a3a3cee3ccddb62dbe02e1dab1ceab72046 /include/utsname.h
parent1722ac7307ac20824bb70a7cc3dc2fbd31995d45 (diff)
downloadconnman-13c2b4b36ee970e01db734c4b0693189c39a7a3d.tar.gz
connman-13c2b4b36ee970e01db734c4b0693189c39a7a3d.tar.bz2
connman-13c2b4b36ee970e01db734c4b0693189c39a7a3d.zip
Add support for getting current system hostname
Diffstat (limited to 'include/utsname.h')
-rw-r--r--include/utsname.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utsname.h b/include/utsname.h
index 6a1edc54..a3589975 100644
--- a/include/utsname.h
+++ b/include/utsname.h
@@ -32,9 +32,12 @@ extern "C" {
* @short_description: Functions for handling utsname
*/
+const char *connman_utsname_get_hostname(void);
+
struct connman_utsname_driver {
const char *name;
int priority;
+ const char * (*get_hostname) (void);
int (*set_hostname) (const char *hostname);
int (*set_domainname) (const char *domainname);
};