Enlightenment CVS committal

Author  : lordchaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/lib


Modified Files:
        evfs_commands.c libevfs.c 


Log Message:
* Added 'evfscat' - similar to unix cat.  Allows such cool things as 'evfscat 
smb://host/filename.mpg | mplayer -cache 8192 -' to play videos from a remote 
filesystem
* Client exposed versions of evfs_open/evfs_close/evfs_read etc
* Integer fd support and hash mappings for remoting of file references to client

===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/lib/evfs_commands.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- evfs_commands.c     16 Oct 2005 11:17:43 -0000      1.12
+++ evfs_commands.c     6 Dec 2005 06:16:58 -0000       1.13
@@ -103,7 +103,7 @@
        
        evfs_command* command = NEW(evfs_command);
 
-       printf("Opening a file..\n");
+       printf("Copying a file..\n");
 
        command->type = EVFS_CMD_FILE_COPY;
        command->file_command.num_files = 2;
@@ -114,8 +114,40 @@
        evfs_write_command(conn, command);
 
        free(command);  
+}
+
+void evfs_client_file_open(evfs_connection* conn, evfs_filereference* file) {
+       evfs_command* command = NEW(evfs_command);
+
+       fprintf(stderr, "Opening a file..\n");
 
+       command->type = EVFS_CMD_FILE_OPEN;
+       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);  
 }
 
 
+void evfs_client_file_read(evfs_connection* conn, evfs_filereference* file, 
int read_size) {
+       evfs_command* command = NEW(evfs_command);
+
+       //printf("Reading a file..\n");
+
+       command->type = EVFS_CMD_FILE_READ;
+       command->file_command.num_files = 1;
+       command->file_command.files = malloc(sizeof(evfs_filereference*)*1);
+       command->file_command.files[0] = file;
+       command->file_command.extra = read_size;
+
+       evfs_write_command(conn, command);
+
+       free(command);  
+}
+
+
+
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/lib/libevfs.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- libevfs.c   28 Nov 2005 08:27:16 -0000      1.26
+++ libevfs.c   6 Dec 2005 06:16:58 -0000       1.27
@@ -201,7 +201,7 @@
        ecore_list_append(reserved, "#");
        ecore_list_append(reserved, ";");
 
-       printf ("Lexing '%s'\n", dup_uri);
+       //printf ("Lexing '%s'\n", dup_uri);
        //printf("Strlen(uri): %d\n", strlen(uri));
 
        while (j <= strlen(dup_uri)) {
@@ -326,7 +326,7 @@
                return token;
        } else {
                ecore_dlist_previous(tokens);
-               printf("Didn't get expected token type, '%s'\n", 
token->token_s);
+               //printf("Didn't get expected token type, '%s'\n", 
token->token_s);
                return NULL;
        }
 }




-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to