2012-06-19 08:59:49 -07:00
|
|
|
#ifndef _UTILS_H__
|
|
|
|
#define _UTILS_H__
|
|
|
|
|
|
|
|
#include <Evas.h>
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
Eina_Bool theme_apply(Evas_Object *edje, const Config *config, const char *group);
|
2014-08-13 10:34:57 -07:00
|
|
|
Eina_Bool theme_apply_default(Evas_Object *edje, const Config *config, const char *group);
|
2012-06-19 08:59:49 -07:00
|
|
|
void theme_reload(Evas_Object *edje);
|
|
|
|
void theme_auto_reload_enable(Evas_Object *edje);
|
2014-02-26 14:03:27 -08:00
|
|
|
const char *theme_path_get(const char *name);
|
2012-10-09 08:11:09 -07:00
|
|
|
|
2012-10-09 10:20:27 -07:00
|
|
|
Eina_Bool homedir_get(char *buf, size_t size);
|
|
|
|
|
2012-10-09 08:11:09 -07:00
|
|
|
Eina_Bool link_is_protocol(const char *str);
|
2012-08-08 06:15:54 -07:00
|
|
|
Eina_Bool link_is_url(const char *str);
|
2012-10-09 08:11:09 -07:00
|
|
|
Eina_Bool link_is_email(const char *str);
|
2012-06-19 08:59:49 -07:00
|
|
|
|
2012-10-09 08:14:24 -07:00
|
|
|
#define casestartswith(str, constref) \
|
|
|
|
(!strncasecmp(str, constref, sizeof(constref) - 1))
|
|
|
|
|
2017-11-11 15:30:25 -08:00
|
|
|
#if (ELM_VERSION_MAJOR == 1) && (ELM_VERSION_MINOR < 20)
|
|
|
|
# if __GNUC__ >= 7
|
|
|
|
# define EINA_FALLTHROUGH __attribute__ ((fallthrough));
|
|
|
|
# else
|
|
|
|
# define EINA_FALLTHROUGH
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
# ifndef EINA_FALLTHROUGH
|
|
|
|
# define EINA_FALLTHROUGH
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2012-06-19 08:59:49 -07:00
|
|
|
#endif
|