Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/bin
Modified Files:
evfs_main.c evfs_server_handle.c evfscat.c
Log Message:
* More API (client directory add)
* Leak fixes
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_main.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- evfs_main.c 3 Feb 2006 23:12:13 -0000 1.36
+++ evfs_main.c 11 Mar 2006 07:11:16 -0000 1.37
@@ -191,6 +191,10 @@
printf("File copy handler\n");
evfs_handle_file_copy(client, command, command);
break;
+
+ case EVFS_CMD_DIRECTORY_CREATE:
+ evfs_handle_directory_create_command(client,command);
+ break;
case EVFS_CMD_PING:
evfs_handle_ping_command(client, command);
break;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfs_server_handle.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -3 -r1.47 -r1.48
--- evfs_server_handle.c 2 Mar 2006 06:53:55 -0000 1.47
+++ evfs_server_handle.c 11 Mar 2006 07:11:16 -0000 1.48
@@ -341,9 +341,31 @@
printf("No plugin for '%s'\n",
command->file_command.files[0]->plugin_uri);
}
+}
+
+
+void evfs_handle_directory_create_command(evfs_client* client, evfs_command*
command)
+{
+ evfs_plugin* plugin = NULL;
+ int ret = 0;
+
+ plugin =
+ evfs_get_plugin_for_uri(client->server,
+ command->file_command.files[0]->plugin_uri);
+
+ if (plugin) {
+ printf("Making new directory '%s'",
+ command->file_command.files[0]->path);
+
+ ret =
+ (*plugin->functions->evfs_file_mkdir)
(command->file_command.files[0]);
+ printf("....ret was %d\n", ret);
+ }
}
+
+
/* TODO:
* 1. check if file exists before open/write. if so, wait-and-lock for user
* choice
@@ -358,7 +380,7 @@
evfs_plugin *dst_plugin;
char bytes[COPY_BLOCKSIZE];
- uint64 count;
+ int64 count;
char destination_file[PATH_MAX];
long read_write_bytes = 0;
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/bin/evfscat.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- evfscat.c 3 Feb 2006 23:12:13 -0000 1.4
+++ evfscat.c 11 Mar 2006 07:11:16 -0000 1.5
@@ -16,7 +16,7 @@
*/
evfs_client_file_read(con, data->resp_command.file_command.files[0],
- 4096);
+ 16384);
break;
@@ -27,7 +27,7 @@
fwrite(data->data.bytes, data->data.size, 1, stdout);
evfs_client_file_read(con,
data->resp_command.file_command.files[0],
- 4096);
+ 16384);
}
else
{
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs