2007-06-02 09:33:43 -07:00
|
|
|
#ifndef _FILE_OFFSET_BITS
|
|
|
|
#define _FILE_OFFSET_BITS 64
|
|
|
|
#endif
|
|
|
|
|
2007-06-05 15:12:10 -07:00
|
|
|
#ifdef __linux__
|
2007-06-02 20:48:18 -07:00
|
|
|
#include <features.h>
|
2007-06-05 14:52:15 -07:00
|
|
|
#endif
|
2005-04-20 02:20:33 -07:00
|
|
|
#include "ecore_private.h"
|
2005-02-20 04:17:07 -08:00
|
|
|
#include "Ecore.h"
|
2005-02-22 04:38:17 -08:00
|
|
|
#include "Ecore_File.h"
|
2005-02-20 04:17:07 -08:00
|
|
|
|
2005-06-17 16:52:32 -07:00
|
|
|
/* ecore_file_monitor */
|
2005-02-20 04:17:07 -08:00
|
|
|
int ecore_file_monitor_init(void);
|
|
|
|
int ecore_file_monitor_shutdown(void);
|
|
|
|
|
2005-03-29 22:35:12 -08:00
|
|
|
#define ECORE_FILE_MONITOR(x) ((Ecore_File_Monitor *)(x))
|
|
|
|
|
2005-02-22 04:38:17 -08:00
|
|
|
struct _Ecore_File_Monitor
|
|
|
|
{
|
2005-08-30 03:05:27 -07:00
|
|
|
Ecore_List2 __list_data;
|
2005-02-22 04:38:17 -08:00
|
|
|
void (*func) (void *data,
|
|
|
|
Ecore_File_Monitor *ecore_file_monitor,
|
|
|
|
Ecore_File_Event event,
|
|
|
|
const char *path);
|
|
|
|
|
|
|
|
char *path;
|
|
|
|
void *data;
|
2005-09-06 16:33:05 -07:00
|
|
|
Ecore_List2 *files;
|
2005-02-22 04:38:17 -08:00
|
|
|
};
|
|
|
|
|
2005-03-29 22:35:12 -08:00
|
|
|
#ifdef HAVE_INOTIFY
|
2006-01-06 10:46:30 -08:00
|
|
|
int ecore_file_monitor_inotify_init(void);
|
|
|
|
int ecore_file_monitor_inotify_shutdown(void);
|
|
|
|
Ecore_File_Monitor *ecore_file_monitor_inotify_add(const char *path,
|
2005-03-29 22:35:12 -08:00
|
|
|
void (*func) (void *data,
|
|
|
|
Ecore_File_Monitor *ecore_file_monitor,
|
|
|
|
Ecore_File_Event event,
|
|
|
|
const char *path),
|
|
|
|
void *data);
|
2006-01-06 10:46:30 -08:00
|
|
|
void ecore_file_monitor_inotify_del(Ecore_File_Monitor *ecore_file_monitor);
|
2005-03-29 22:35:12 -08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_FAM
|
2006-01-06 10:46:30 -08:00
|
|
|
int ecore_file_monitor_fam_init(void);
|
|
|
|
int ecore_file_monitor_fam_shutdown(void);
|
|
|
|
Ecore_File_Monitor *ecore_file_monitor_fam_add(const char *path,
|
2005-03-29 22:35:12 -08:00
|
|
|
void (*func) (void *data,
|
|
|
|
Ecore_File_Monitor *ecore_file_monitor,
|
|
|
|
Ecore_File_Event event,
|
|
|
|
const char *path),
|
|
|
|
void *data);
|
2006-01-06 10:46:30 -08:00
|
|
|
void ecore_file_monitor_fam_del(Ecore_File_Monitor *ecore_file_monitor);
|
2005-03-29 22:35:12 -08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef HAVE_POLL
|
2006-01-06 10:46:30 -08:00
|
|
|
int ecore_file_monitor_poll_init(void);
|
|
|
|
int ecore_file_monitor_poll_shutdown(void);
|
|
|
|
Ecore_File_Monitor *ecore_file_monitor_poll_add(const char *path,
|
|
|
|
void (*func) (void *data,
|
|
|
|
Ecore_File_Monitor *ecore_file_monitor,
|
|
|
|
Ecore_File_Event event,
|
|
|
|
const char *path),
|
|
|
|
void *data);
|
|
|
|
void ecore_file_monitor_poll_del(Ecore_File_Monitor *ecore_file_monitor);
|
2005-06-17 16:52:32 -07:00
|
|
|
|
|
|
|
/* ecore_file_path */
|
|
|
|
int ecore_file_path_init(void);
|
|
|
|
int ecore_file_path_shutdown(void);
|
|
|
|
|
|
|
|
/* ecore_file_download */
|
|
|
|
int ecore_file_download_init(void);
|
|
|
|
int ecore_file_download_shutdown(void);
|
|
|
|
|
2005-03-29 22:35:12 -08:00
|
|
|
#endif
|