Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/lib
Modified Files:
evfs_commands.c
Log Message:
* More API (client directory add)
* Leak fixes
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/lib/evfs_commands.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- evfs_commands.c 8 Mar 2006 12:33:04 -0000 1.22
+++ evfs_commands.c 11 Mar 2006 07:11:16 -0000 1.23
@@ -47,6 +47,7 @@
evfs_write_command(conn, command);
+ free(command->file_command.files);
free(command);
}
@@ -65,6 +66,7 @@
command->file_command.files[0] = from;
command->file_command.files[1] = to;
+ free(command->file_command.files);
evfs_write_command(conn, command);
free(command);
@@ -83,6 +85,7 @@
evfs_write_command(conn, command);
+ free(command->file_command.files);
free(command);
}
@@ -101,6 +104,7 @@
evfs_write_command(conn, command);
+ free(command->file_command.files);
free(command);
}
@@ -122,6 +126,7 @@
evfs_write_command(conn, command);
+ free(command->file_command.files);
free(command);
}
@@ -139,6 +144,7 @@
evfs_write_command(conn, command);
+ free(command->file_command.files);
free(command);
}
@@ -158,9 +164,30 @@
evfs_write_command(conn, command);
+ free(command->file_command.files);
free(command);
}
+
+void
+evfs_client_directory_create(evfs_connection * conn, evfs_filereference * file)
+{
+ evfs_command *command = NEW(evfs_command);
+
+ //printf("Reading a file..\n");
+
+ command->type = EVFS_CMD_DIRECTORY_CREATE;
+ command->file_command.num_files = 1;
+ command->file_command.files = malloc(sizeof(evfs_filereference *) * 1);
+ command->file_command.files[0] = file;
+
+ evfs_write_command(conn, command);
+
+ free(command->file_command.files);
+ free(command);
+}
+
+
void
evfs_client_operation_respond(evfs_connection * conn, long opid,
evfs_operation_response response)
-------------------------------------------------------
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