Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/include Modified Files: evfs.h evfs_operation.h evfs_plugin.h Log Message: * Work on evfs_operation for user/server comms on tasks =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs.h,v retrieving revision 1.36 retrieving revision 1.37 diff -u -3 -r1.36 -r1.37 --- evfs.h 26 Jan 2006 00:55:33 -0000 1.36 +++ evfs.h 26 Jan 2006 03:33:47 -0000 1.37 @@ -36,8 +36,15 @@ #define EVFS_FUNCTION_FILE_STAT_GET "evfs_file_stat_get" + + #include "evfs_plugin.h" +typedef enum +{ + EVFS_SUCCESS, + EVFS_ERROR +} evfs_status; typedef enum { =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs_operation.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- evfs_operation.h 20 Jan 2006 03:11:43 -0000 1.2 +++ evfs_operation.h 26 Jan 2006 03:33:48 -0000 1.3 @@ -6,18 +6,30 @@ #ifndef __EVFS_OPERATION_H_ #define __EVDS_OPERATION_H_ -enum operation_status { +typedef enum evfs_operation_status { EVFS_OPERATION_STATUS_USER_WAIT, EVFS_OPERATION_STATUS_ERROR, -} operstion_status; + EVFS_OPERATION_STATUS_OVERRIDE, + EVFS_OPERATION_STATUS_NORMAL +} evfs_operation_status; + +typedef enum evfs_operation_response { + EVFS_OPERATION_RESPONSE_AFFIRM, + EVFS_OPERATION_RESPONSE_NEGATE +} evfs_operation_response; typedef struct evfs_operation evfs_operation; struct evfs_operation { - int id; /* A unique id for this op*/ - int status; + long id; /* A unique id for this op*/ + evfs_operation_status status; + evfs_operation_response response; }; - - +void evfs_operation_initialise(); +evfs_operation* evfs_operation_new(); +void evfs_operation_destroy(evfs_operation* op); +evfs_operation* evfs_operation_get_by_id(long id); +void evfs_operation_status_set(evfs_operation* op, int status); +void evfs_operation_user_dispatch(evfs_client* client, evfs_operation* op); #endif =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/include/evfs_plugin.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- evfs_plugin.h 28 Dec 2005 11:35:19 -0000 1.11 +++ evfs_plugin.h 26 Jan 2006 03:33:48 -0000 1.12 @@ -9,8 +9,8 @@ int (*evfs_monitor_start)(evfs_client* client, evfs_command* command); int (*evfs_monitor_stop)(evfs_client* client, evfs_command* command); int (*evfs_file_rename)(evfs_client* client, evfs_command* command); - int (*evfs_file_stat)(evfs_command* command, struct stat* file_stat); - int (*evfs_file_lstat)(evfs_command* command, struct stat* file_stat); + int (*evfs_file_stat)(evfs_command* command, struct stat* file_stat, int); + int (*evfs_file_lstat)(evfs_command* command, struct stat* file_stat, int); void (*evfs_dir_list)(evfs_client* client, evfs_command* command, Ecore_List** directory_list); int (*evfs_file_open)(evfs_client* client, evfs_filereference* command); ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs