summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-04-07 09:54:42 -0400
committerMike Blumenkrantz <zmike@samsung.com>2014-04-07 09:54:42 -0400
commit4e1b7308b755ffe46498b05aa3199d45f867bcd3 (patch)
tree2fb6a3412173a8710e2dc6bc67f85271bf2bd4ec /src/lib/eeze
parent89d6e0b142af61b7501ed7f894017592da6ece1b (diff)
+eeze_udev_get()
@feature
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/Eeze.h10
-rw-r--r--src/lib/eeze/eeze_main.c5
2 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/eeze/Eeze.h b/src/lib/eeze/Eeze.h
index 834956688f..5b25d6a6bf 100644
--- a/src/lib/eeze/Eeze.h
+++ b/src/lib/eeze/Eeze.h
@@ -314,6 +314,16 @@ EAPI int eeze_init(void);
314 */ 314 */
315EAPI int eeze_shutdown(void); 315EAPI int eeze_shutdown(void);
316 316
317/**
318 * @return the main udev context used by the library
319 * This allows for external reuse of the udev context, reducing direct dependency
320 * on libudev.
321 * @warning DO NOT CLOSE THIS CONTEXT.
322 * @since 1.10
323 */
324EAPI void *eeze_udev_get(void);
325
326
317 /** 327 /**
318 * @addtogroup Eeze_Find Find 328 * @addtogroup Eeze_Find Find
319 * 329 *
diff --git a/src/lib/eeze/eeze_main.c b/src/lib/eeze/eeze_main.c
index 9b465401e5..7ad0384bb6 100644
--- a/src/lib/eeze/eeze_main.c
+++ b/src/lib/eeze/eeze_main.c
@@ -126,3 +126,8 @@ eeze_shutdown(void)
126 return _eeze_init_count; 126 return _eeze_init_count;
127} 127}
128 128
129EAPI void *
130eeze_udev_get(void)
131{
132 return udev;
133}