summaryrefslogtreecommitdiff
path: root/src/lib/eio/eio_sentry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eio/eio_sentry.c')
-rw-r--r--src/lib/eio/eio_sentry.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/eio/eio_sentry.c b/src/lib/eio/eio_sentry.c
index c21b0c2052..cf2b166d4b 100644
--- a/src/lib/eio/eio_sentry.c
+++ b/src/lib/eio/eio_sentry.c
@@ -21,6 +21,7 @@
# include <config.h>
#endif
+#define EIO_SENTRY_BETA 1
#include <Eo.h>
#include "Ecore.h"
@@ -137,7 +138,7 @@ _eio_sentry_add(Eo *obj EINA_UNUSED, Eio_Sentry_Data *pd, const char *path)
}
void
-_eio_sentry_del(Eo *obj EINA_UNUSED, Eio_Sentry_Data *pd, const char *path)
+_eio_sentry_remove(Eo *obj EINA_UNUSED, Eio_Sentry_Data *pd, const char *path)
{
EINA_SAFETY_ON_NULL_RETURN(path);
EINA_SAFETY_ON_NULL_RETURN(pd);
@@ -145,6 +146,19 @@ _eio_sentry_del(Eo *obj EINA_UNUSED, Eio_Sentry_Data *pd, const char *path)
eina_hash_del(pd->targets, path, NULL);
}
+Eina_Bool
+_eio_sentry_fallback_check(const Eo *obj EINA_UNUSED, Eio_Sentry_Data *pd, const char *path)
+{
+ Eio_Monitor *monitor;
+
+ EINA_SAFETY_ON_NULL_RETURN_VAL(path, EINA_FALSE);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(pd, EINA_FALSE);
+
+ monitor = eina_hash_find(pd->targets, path);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(monitor, EINA_FALSE);
+ return eio_monitor_fallback_check(monitor);
+}
+
Efl_Object * _eio_sentry_efl_object_constructor(Eo *obj, Eio_Sentry_Data *pd)
{
obj = efl_constructor(efl_super(obj, EIO_SENTRY_CLASS));