aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-06-09 15:45:46 +0200
committerYang Tse <yangsita@gmail.com>2010-06-09 15:45:46 +0200
commit6a0d3233ffacec92ad230f74458454bf65a24eac (patch)
tree58b1ba697fec11e50408b5df5c6ff816791b65d0
parentd3714b016d9f88420d17861d4a48f39365bdd961 (diff)
add Curl_ prefix to conform with cURL naming standards
-rw-r--r--lib/ftp.c10
-rw-r--r--lib/ftplistparser.c9
-rw-r--r--lib/ftplistparser.h9
3 files changed, 15 insertions, 13 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 935ab31dc..51276c09f 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3474,7 +3474,7 @@ static void wc_data_dtor(void *ptr)
{
struct ftp_wc_tmpdata *tmp = ptr;
if(tmp)
- ftp_parselist_data_free(&tmp->parser);
+ Curl_ftp_parselist_data_free(&tmp->parser);
Curl_safefree(tmp);
}
@@ -3525,7 +3525,7 @@ static CURLcode init_wc_data(struct connectdata *conn)
}
/* INITIALIZE parselist structure */
- ftp_tmp->parser = ftp_parselist_data_alloc();
+ ftp_tmp->parser = Curl_ftp_parselist_data_alloc();
if(!ftp_tmp->parser)
return CURLE_OUT_OF_MEMORY;
@@ -3545,7 +3545,7 @@ static CURLcode init_wc_data(struct connectdata *conn)
/* backup old write_function */
ftp_tmp->backup.write_function = conn->data->set.fwrite_func;
/* parsing write function (callback included directly from ftplistparser.c) */
- conn->data->set.fwrite_func = ftp_parselist;
+ conn->data->set.fwrite_func = Curl_ftp_parselist;
/* backup old file descriptor */
ftp_tmp->backup.file_descriptor = conn->data->set.out;
/* let the writefunc callback know what curl pointer is working with */
@@ -3586,7 +3586,7 @@ static CURLcode wc_statemach(struct connectdata *conn)
conn->data->set.out = ftp_tmp->backup.file_descriptor;
wildcard->state = CURLWC_DOWNLOADING;
- if(ftp_parselist_geterror(ftp_tmp->parser)) {
+ if(Curl_ftp_parselist_geterror(ftp_tmp->parser)) {
/* error found in LIST parsing */
wildcard->state = CURLWC_CLEAN;
return wc_statemach(conn);
@@ -3670,7 +3670,7 @@ static CURLcode wc_statemach(struct connectdata *conn)
case CURLWC_CLEAN:
ret = CURLE_OK;
if(ftp_tmp) {
- ret = ftp_parselist_geterror(ftp_tmp->parser);
+ ret = Curl_ftp_parselist_geterror(ftp_tmp->parser);
}
wildcard->state = ret ? CURLWC_ERROR : CURLWC_DONE;
break;
diff --git a/lib/ftplistparser.c b/lib/ftplistparser.c
index ac6d07675..3dd661788 100644
--- a/lib/ftplistparser.c
+++ b/lib/ftplistparser.c
@@ -188,7 +188,7 @@ struct ftp_parselist_data {
} offsets;
};
-struct ftp_parselist_data *ftp_parselist_data_alloc(void)
+struct ftp_parselist_data *Curl_ftp_parselist_data_alloc(void)
{
struct ftp_parselist_data *parselist_data =
malloc(sizeof(struct ftp_parselist_data));
@@ -199,7 +199,7 @@ struct ftp_parselist_data *ftp_parselist_data_alloc(void)
}
-void ftp_parselist_data_free(struct ftp_parselist_data **pl_data)
+void Curl_ftp_parselist_data_free(struct ftp_parselist_data **pl_data)
{
if(*pl_data)
free(*pl_data);
@@ -207,7 +207,7 @@ void ftp_parselist_data_free(struct ftp_parselist_data **pl_data)
}
-CURLcode ftp_parselist_geterror(struct ftp_parselist_data *pl_data)
+CURLcode Curl_ftp_parselist_geterror(struct ftp_parselist_data *pl_data)
{
return pl_data->error;
}
@@ -365,7 +365,8 @@ static CURLcode ftp_pl_insert_finfo(struct connectdata *conn,
return CURLE_OK;
}
-size_t ftp_parselist(char *buffer, size_t size, size_t nmemb, void *connptr)
+size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb,
+ void *connptr)
{
size_t bufflen = size*nmemb;
struct connectdata *conn = (struct connectdata *)connptr;
diff --git a/lib/ftplistparser.h b/lib/ftplistparser.h
index 5a16abf6a..67a06c296 100644
--- a/lib/ftplistparser.h
+++ b/lib/ftplistparser.h
@@ -25,14 +25,15 @@
#include <curl/curl.h>
/* WRITEFUNCTION callback for parsing LIST responses */
-size_t ftp_parselist(char *buffer, size_t size, size_t nmemb, void *connptr);
+size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb,
+ void *connptr);
struct ftp_parselist_data; /* defined inside ftplibparser.c */
-CURLcode ftp_parselist_geterror(struct ftp_parselist_data *pl_data);
+CURLcode Curl_ftp_parselist_geterror(struct ftp_parselist_data *pl_data);
-struct ftp_parselist_data *ftp_parselist_data_alloc(void);
+struct ftp_parselist_data *Curl_ftp_parselist_data_alloc(void);
-void ftp_parselist_data_free(struct ftp_parselist_data **pl_data);
+void Curl_ftp_parselist_data_free(struct ftp_parselist_data **pl_data);
#endif /* HEADER_CURL_FTPLISTPARSER_H */