#include <fcntl.h>
#include <sys/stat.h>
+#include <Eet.h>
+#include <Ecore.h>
#include <Ecore_File.h>
#include "Efreet.h"
#include "efreet_private.h"
+#include "efreet_icon_private.h"
typedef struct _Efreet_Old_Cache Efreet_Old_Cache;
#include <sys/mman.h>
#include <fcntl.h>
-#ifdef _WIN32
-# include <winsock2.h>
+#ifdef HAVE_EVIL
+# include <Evil.h>
#endif
#include <Ecore_File.h>
return 0;
}
+ if (!evil_sockets_init())
+ {
+ ERR("Could not initialize Winsock system");
+ return 0;
+ }
+
efreet_desktop_cache = eina_hash_string_superfast_new(NULL);
efreet_desktop_types = NULL;
EINA_LIST_FREE(efreet_desktop_dirs, dir)
eina_stringshare_del(dir);
IF_FREE_HASH(change_monitors);
+ evil_sockets_shutdown();
eina_log_domain_unregister(_efreet_desktop_log_dom);
}
#include <limits.h>
#include <ctype.h>
+#ifdef _WIN32
+# include <winsock2.h>
+#endif
+
#include <Ecore_File.h>
#include "Efreet.h"
#include <dirent.h>
#include <limits.h>
+#include <Eet.h>
#include <Ecore_File.h>
#include "Efreet.h"
#include "efreet_private.h"
+#include "efreet_icon_private.h"
#ifdef EFREET_MODULE_LOG_DOM
#undef EFREET_MODULE_LOG_DOM
--- /dev/null
+#ifndef EFREET_ICON_PRIVATE_H\r
+#define EFREET_ICON_PRIVATE_H\r
+\r
+EAPI Eet_Data_Descriptor *efreet_desktop_edd_init(void);\r
+\r
+#endif\r
struct stat s;
int path_len = 0;
+ /* no link on Windows < Vista */
+#ifdef _WIN32
+ if (!stat(file, &s))
+#else
if (!lstat(file, &s))
+#endif
{
if (S_ISREG(s.st_mode))
return NULL;
/* Truncate to last slash */
while (parent[--path_len] != '/') parent[path_len] = '\0';
+#ifdef _WIN32
+ if (!stat(file, &s2))
+#else
if (!lstat(parent, &s2))
+#endif
{
if (s.st_dev != s2.st_dev)
return _mime_inode_mountpoint;
#ifndef EFREET_PRIVATE_H
#define EFREET_PRIVATE_H
-#include <Eet.h>
-#include <Ecore.h>
-
/**
* @file efreet_private.h
const char *efreet_desktop_environment_get(void);
-EAPI Eet_Data_Descriptor *efreet_desktop_edd_init(void);
-
void efreet_util_desktop_cache_reload(void);
EAPI const char *efreet_desktop_util_cache_file(void);
EAPI const char *efreet_desktop_cache_file(void);
static unsigned int _efreet_trash_init_count = 0;
static const char *efreet_trash_dir = NULL;
+#ifdef _WIN32
+# define getuid() GetCurrentProcessId()
+#endif
+
/* define macros and variable for using the eina logging system */
#ifdef EFREET_MODULE_LOG_DOM
#include <fnmatch.h>
#include <limits.h>
+#include <Eet.h>
#include <Ecore_File.h>
#include "Efreet.h"