aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/libgamma-error.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-17 20:55:15 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-17 20:55:18 +0200
commitd640379bb205194cb3c7876af91e0816e119aacd (patch)
tree7d3b8abf87b51bfe09e9d9bdece78f3352e66541 /src/lib/libgamma-error.h
parentwe should not add icc profile support (diff)
downloadlibgamma-d640379bb205194cb3c7876af91e0816e119aacd.tar.gz
libgamma-d640379bb205194cb3c7876af91e0816e119aacd.tar.bz2
libgamma-d640379bb205194cb3c7876af91e0816e119aacd.tar.xz
add setter and getter wrapper for thread local variables so wrappers not understanding __thread can use them
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/lib/libgamma-error.h')
-rw-r--r--src/lib/libgamma-error.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libgamma-error.h b/src/lib/libgamma-error.h
index 73c224a..0b6831c 100644
--- a/src/lib/libgamma-error.h
+++ b/src/lib/libgamma-error.h
@@ -36,6 +36,8 @@
*/
#ifndef __WIN32__
extern __thread gid_t libgamma_group_gid;
+gid_t get_libgamma_group_gid(void) __attribute__((pure));
+void set_libgamma_group_gid(gid_t value);
#else
extern short libgamma_group_gid;
#endif
@@ -48,6 +50,8 @@ extern short libgamma_group_gid;
*/
#ifndef __WIN32__
extern __thread const char* libgamma_group_name;
+const char* get_libgamma_group_name(void) __attribute__((pure));
+void set_libgamma_group_name(const char* value);
#else
extern const char* libgamma_group_name;
#endif