Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/lib


Modified Files:
        evfs_commands.c 


Log Message:
* Handle auth requests/responses

===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/lib/evfs_commands.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -3 -r1.38 -r1.39
--- evfs_commands.c     25 Jul 2007 17:00:53 -0000      1.38
+++ evfs_commands.c     13 Aug 2007 03:05:21 -0000      1.39
@@ -440,5 +440,26 @@
    free(command);
 
    return id;
+}
 
+long
+evfs_client_auth_send(evfs_connection* conn, evfs_filereference* ref, char* 
user, char* password)
+{
+   evfs_command *command = evfs_client_command_new();
+   long id = command->client_identifier;
+
+   command->type = EVFS_CMD_AUTH_RESPONSE;
+   command->file_command.num_files = 1;
+   command->file_command.files = malloc(sizeof(evfs_filereference *) * 1);
+   command->file_command.files[0] = ref;
+   command->file_command.files[0]->username = user;
+   command->file_command.files[0]->password = password;
+
+   evfs_write_command(conn, command);
+       
+   free(command->file_command.files);
+   free(command);
+
+
+   return id;
 }



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to