summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2013-03-10 14:35:41 +0900
committerCedric Bail <cedric.bail@free.fr>2013-03-10 15:58:29 +0900
commit12ceb717ea64105bbebfb45737fa8448ed721f83 (patch)
treec7356021c2f15d135313662339fd20d8f3b51beb /src/lib/eeze
parentae08c6e721899d44c0202abe772d600078e908b9 (diff)
eeze: add a dummy implementation for when libmount is not available.
This implementation doesn't replace libmount, it just provide an empty piece of code that will always fail to do anything. It does simplify Eeze building and use by third party by always providing the API.
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/eeze_disk_dummy.c81
1 files changed, 81 insertions, 0 deletions
diff --git a/src/lib/eeze/eeze_disk_dummy.c b/src/lib/eeze/eeze_disk_dummy.c
new file mode 100644
index 0000000000..678f55fefc
--- /dev/null
+++ b/src/lib/eeze/eeze_disk_dummy.c
@@ -0,0 +1,81 @@
1#ifdef HAVE_CONFIG_H
2#include "config.h"
3#endif
4
5#include <Eeze.h>
6#include <Eeze_Disk.h>
7
8#include "eeze_udev_private.h"
9#include "eeze_disk_private.h"
10
11Eina_Bool
12eeze_libmount_init(void)
13{
14 return EINA_TRUE;
15}
16
17void
18eeze_libmount_shutdown(void)
19{
20}
21
22unsigned long
23eeze_disk_libmount_opts_get(Eeze_Disk *disk EINA_UNUSED)
24{
25 return 0;
26}
27
28Eina_Bool
29eeze_disk_libmount_mounted_get(Eeze_Disk *disk EINA_UNUSED)
30{
31 return EINA_FALSE;
32}
33
34const char *
35eeze_disk_libmount_mp_find_source(const char *mount_point EINA_UNUSED)
36{
37 return NULL;
38}
39
40const char *
41eeze_disk_libmount_mp_lookup_by_uuid(const char *uuid EINA_UNUSED)
42{
43 return NULL;
44}
45
46const char *
47eeze_disk_libmount_mp_lookup_by_label(const char *label EINA_UNUSED)
48{
49 return NULL;
50}
51
52const char *
53eeze_disk_libmount_mp_lookup_by_devpath(const char *devpath EINA_UNUSED)
54{
55 return NULL;
56}
57
58EAPI Eina_Bool
59eeze_mount_tabs_watch(void)
60{
61 ERR("Dummy backend no watching code provided !");
62 return EINA_FALSE;
63}
64
65EAPI void
66eeze_mount_tabs_unwatch(void)
67{
68}
69
70EAPI Eina_Bool
71eeze_mount_mtab_scan(void)
72{
73 return EINA_FALSE;
74}
75
76EAPI Eina_Bool
77eeze_mount_fstab_scan(void)
78{
79 return EINA_FALSE;
80}
81