Enlightenment CVS committal
Author : lordchaos
Project : e17
Module : apps/evfs
Dir : e17/apps/evfs/src/plugins
Modified Files:
Makefile.am evfs_fs_samba.c
Added Files:
evfs_fs_gzip.c
Log Message:
* First commit of the gzip plugin
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/Makefile.am,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- Makefile.am 6 Nov 2005 04:54:24 -0000 1.13
+++ Makefile.am 20 Nov 2005 01:27:24 -0000 1.14
@@ -24,7 +24,10 @@
BZIP2_L = bzip2.la
-pkg_LTLIBRARIES = $(POSIX_L) $(SAMBA_L) $(TAR_L) $(BZIP2_L) $(FTP_L)
+GZIP_L = gzip.la
+
+
+pkg_LTLIBRARIES = $(POSIX_L) $(SAMBA_L) $(TAR_L) $(BZIP2_L) $(FTP_L)
$(GZIP_L)
posix_la_SOURCES = evfs_fs_posix.c \
$(top_srcdir)/src/common/evfs_debug.c \
@@ -43,6 +46,11 @@
$(top_srcdir)/src/bin/evfs_server_handle.c \
$(top_srcdir)/src/common/evfs_common.c
+gzip_la_SOURCES = evfs_fs_gzip.c \
+ $(top_srcdir)/src/common/evfs_debug.c \
+ $(top_srcdir)/src/common/evfs_event_helper.c \
+ $(top_srcdir)/src/bin/evfs_server_handle.c \
+ $(top_srcdir)/src/common/evfs_common.c
samba_la_SOURCES = evfs_fs_samba.c \
@@ -71,6 +79,11 @@
bzip2_la_LDFLAGS = -module -avoid-version
bzip2_la_LIBADD = @ecore_libs@ -L$(top_builddir)/src/lib -levfs @BZ2_LIBS@
+gzip_la_CFLAGS = @ecore_cflags@
+gzip_la_LDFLAGS = -module -avoid-version
+gzip_la_LIBADD = @ecore_libs@ -L$(top_builddir)/src/lib -levfs -lz
+
+
ftp_la_CFLAGS = @ecore_cflags@ @curl_cflags@
ftp_la_LDFLAGS = -module -avoid-version
ftp_la_LIBADD = @ecore_libs@ -L$(top_builddir)/src/lib -levfs @curl_libs@
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/plugins/evfs_fs_samba.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- evfs_fs_samba.c 19 Nov 2005 11:23:47 -0000 1.20
+++ evfs_fs_samba.c 20 Nov 2005 01:27:24 -0000 1.21
@@ -56,6 +56,7 @@
int evfs_file_read(evfs_client* client, evfs_filereference* file, char* bytes,
long size);
int evfs_file_write(evfs_filereference* file, char* bytes, long size);
int evfs_file_create(evfs_filereference* file);
+int smb_evfs_file_mkdir(evfs_filereference* file);
@@ -159,6 +160,7 @@
functions->evfs_file_write = &evfs_file_write;
functions->evfs_file_create = &evfs_file_create;
functions->evfs_file_stat = &smb_evfs_file_stat;
+ functions->evfs_file_mkdir = &smb_evfs_file_mkdir;
printf("Samba stat func at '%p'\n", &smb_evfs_file_stat);
auth_cache = ecore_list_new();
@@ -367,3 +369,15 @@
file->fd_p = smb_context->open(smb_context, dir_path, O_CREAT | O_TRUNC
| O_RDWR , S_IRUSR | S_IWUSR);
return 0;
}
+
+
+int smb_evfs_file_mkdir(evfs_filereference* file) {
+ char dir_path[1024];
+ snprintf(dir_path,1024,"smb:/%s", file->path);
+
+ printf ("SMB File mkdir: %s\n", dir_path);
+
+ smb_context->mkdir(smb_context, dir_path, S_IRWXU);
+ return 0;
+
+}
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs