summaryrefslogtreecommitdiffstats
path: root/macos.c
diff options
context:
space:
mode:
authorGravatar Alberto Mardegan <mardy@users.sourceforge.net>2013-04-01 13:51:49 +0300
committerGravatar Alberto Mardegan <mardy@users.sourceforge.net>2013-04-01 16:03:59 +0300
commit578d633d0148a13397f330aa91af1470843d73c1 (patch)
tree3fe9b442b5c62a0b2bf0dc54f463f02594b51e24 /macos.c
parent42365ede79ec34dba58447458bbc3f1c66cba7d1 (diff)
downloadsubsurface-578d633d0148a13397f330aa91af1470843d73c1.tar.gz
Have some C++ file in the project
Rename gtk-gui.c to qt-gui.cpp, and make the necessary changes so that the project still builds. Signed-off-by: Alberto Mardegan <mardy@users.sourceforge.net>
Diffstat (limited to 'macos.c')
-rw-r--r--macos.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/macos.c b/macos.c
index aee4c73ca..93bc00eea 100644
--- a/macos.c
+++ b/macos.c
@@ -30,29 +30,29 @@ void subsurface_open_conf(void)
/* nothing at this time */
}
-void subsurface_unset_conf(char *name)
+void subsurface_unset_conf(const char *name)
{
CFPreferencesSetAppValue(CFSTR_VAR(name), NULL, SUBSURFACE_PREFERENCES);
}
-void subsurface_set_conf(char *name, const char *value)
+void subsurface_set_conf(const char *name, const char *value)
{
CFPreferencesSetAppValue(CFSTR_VAR(name), CFSTR_VAR(value), SUBSURFACE_PREFERENCES);
}
-void subsurface_set_conf_bool(char *name, int value)
+void subsurface_set_conf_bool(const char *name, int value)
{
CFPreferencesSetAppValue(CFSTR_VAR(name),
value ? kCFBooleanTrue : kCFBooleanFalse, SUBSURFACE_PREFERENCES);
}
-void subsurface_set_conf_int(char *name, int value)
+void subsurface_set_conf_int(const char *name, int value)
{
CFNumberRef numRef = CFNumberCreate(NULL, kCFNumberIntType, &value);
CFPreferencesSetAppValue(CFSTR_VAR(name), numRef, SUBSURFACE_PREFERENCES);
}
-const void *subsurface_get_conf(char *name)
+const char *subsurface_get_conf(char *name)
{
CFPropertyListRef strpref;
@@ -62,7 +62,7 @@ const void *subsurface_get_conf(char *name)
return strdup(CFStringGetCStringPtr(strpref, kCFStringEncodingMacRoman));
}
-int subsurface_get_conf_bool(char *name)
+int subsurface_get_conf_bool(const char *name)
{
Boolean boolpref, exists;
@@ -72,7 +72,7 @@ int subsurface_get_conf_bool(char *name)
return boolpref;
}
-int subsurface_get_conf_int(char *name)
+int subsurface_get_conf_int(const char *name)
{
Boolean exists;
CFIndex value;