Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/bin
Modified Files:
Makefile.am evfs_main.c
Added Files:
evfs_server_handle.c
Log Message:
* Extrapolated server side command handling functions
* Monitor stop stubs
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Makefile.am 16 Aug 2005 07:31:39 -0000 1.3
+++ Makefile.am 16 Aug 2005 08:11:33 -0000 1.4
@@ -14,7 +14,8 @@
evfs_cleanup.c \
../common/evfs_new.c \
../common/evfs_io.c \
- ../common/evfs_event_helper.c
+ ../common/evfs_event_helper.c \
+ evfs_server_handle.c
evfs_LDADD = -L$(top_builddir)/src/lib -levfs @ecore_libs@ @xml2_libs@
@fam_libs@
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_main.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- evfs_main.c 16 Aug 2005 07:53:30 -0000 1.6
+++ evfs_main.c 16 Aug 2005 08:11:33 -0000 1.7
@@ -143,32 +143,13 @@
evfs_handle_monitor_start_command(client, command);
break;
+ case EVFS_CMD_STOPMON_FILE:
+ printf("We received a monitor stop request\n");
+ evfs_handle_monitor_stop_command(client,command);
+ break;
}
}
-void evfs_handle_monitor_start_command(evfs_client* client, evfs_command*
command) {
- /*First get the plugin responsible for this file*/
-
- void (*evfs_monitor_start)(evfs_client* client, evfs_command* command);
-
- if (command->file_command.num_files > 0) {
- evfs_plugin* plugin =
evfs_get_plugin_for_uri(command->file_command.files[0]->plugin_uri);
-
- if (!plugin) {
- printf("No plugin able to monitor this uri type\n");
- } else {
- printf("Requesting a file monitor from this plugin for
uri type '%s'\n", command->file_command.files[0]->plugin_uri );
-
- evfs_monitor_start = dlsym(plugin->dl_ref,
EVFS_MONITOR_START);
- if (evfs_monitor_start) {
- (*evfs_monitor_start)(client,command);
- }
-
- }
- } else {
- printf("No files to monitor!\n");
- }
-}
evfs_plugin* evfs_load_plugin(char* filename) {
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs