Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_file
Modified Files:
Ecore_File.h ecore_file_download.c
Log Message:
- add ecore_file_download_protocol_available so we can determine if the
protocols we need are compiled in or not
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/Ecore_File.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- Ecore_File.h 17 Jun 2005 23:52:32 -0000 1.12
+++ Ecore_File.h 22 Jun 2005 14:51:36 -0000 1.13
@@ -83,6 +83,7 @@
const char *file,
int status),
void *data);
+ EAPI int ecore_file_download_protocol_available(const char
*protocol);
#ifdef __cplusplus
}
===================================================================
RCS file:
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_file/ecore_file_download.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ecore_file_download.c 22 Jun 2005 02:00:35 -0000 1.4
+++ ecore_file_download.c 22 Jun 2005 14:51:37 -0000 1.5
@@ -97,7 +97,7 @@
}
#ifdef HAVE_CURL
else if ((!strncmp(url, "http://", 7)) ||
- (!strncmp(url, "ftp://", 7)))
+ (!strncmp(url, "ftp://", 6)))
{
/* download */
Ecore_File_Download_Job *job;
@@ -115,6 +115,18 @@
}
}
+int
+ecore_file_download_protocol_available(const char *protocol)
+{
+ if (!strncmp(protocol, "file://", 7)) return 1;
+#ifdef HAVE_CURL
+ else if (!strncmp(protocol, "http://", 7)) return 1;
+ else if (!strncmp(protocol, "ftp://", 6)) return 1;
+#endif
+
+ return 0;
+}
+
#ifdef HAVE_CURL
/*
* FIXME: Use
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs