diff options
author | JP Rosevear <jpr@src.gnome.org> | 2001-01-24 03:20:44 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-01-24 03:20:44 +0800 |
commit | fd279723663879e742e53d7b3503248f6af91791 (patch) | |
tree | 09233c88d6c42b5bb324be7c64a8f8c64ff02846 /libical/src/libicalss/icalcstp.c | |
parent | 34bcd381ce1985cc762a896f15d427e368af95e5 (diff) | |
download | gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.tar gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.tar.gz gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.tar.bz2 gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.tar.lz gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.tar.xz gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.tar.zst gsoc2013-evolution-fd279723663879e742e53d7b3503248f6af91791.zip |
This commit was generated by cvs2svn to compensate for changes in r7747,
which included commits to RCS files with non-trunk default branches.
svn path=/trunk/; revision=7748
Diffstat (limited to 'libical/src/libicalss/icalcstp.c')
-rw-r--r-- | libical/src/libicalss/icalcstp.c | 66 |
1 files changed, 53 insertions, 13 deletions
diff --git a/libical/src/libicalss/icalcstp.c b/libical/src/libicalss/icalcstp.c index 2c86ddcc2c..53ee7bdeef 100644 --- a/libical/src/libicalss/icalcstp.c +++ b/libical/src/libicalss/icalcstp.c @@ -34,6 +34,8 @@ #include <sys/socket.h> /* For send(), others. */ #include <unistd.h> /* For alarm */ #include <errno.h> +#include <stdlib.h> /* for malloc */ +#include <string.h> enum cstps_state { NO_STATE, @@ -199,16 +201,43 @@ int line_is_response(char* line); int line_is_endofdata(char* line); int line_is_mime(char* line); -icalerrorenum prep_abort(struct icalcstps_impl* impl, char* data); -icalerrorenum prep_authenticate(struct icalcstps_impl* impl, char* data); -icalerrorenum prep_capability(struct icalcstps_impl* impl, char* data); -icalerrorenum prep_calidexpand(struct icalcstps_impl* impl, char* data); -icalerrorenum prep_continue(struct icalcstps_impl* impl, char* data); -icalerrorenum prep_disconnect(struct icalcstps_impl* impl, char* data); -icalerrorenum prep_identify(struct icalcstps_impl* impl, char* data); -icalerrorenum prep_starttls(struct icalcstps_impl* impl, char* data); -icalerrorenum prep_upnexpand(struct icalcstps_impl* impl, char* data); -icalerrorenum prep_sendata(struct icalcstps_impl* impl, char* data); +icalerrorenum prep_abort(struct icalcstps_impl* impl, char* data) +{ + return ICAL_NO_ERROR; +} +icalerrorenum prep_authenticate(struct icalcstps_impl* impl, char* data) +{ return ICAL_NO_ERROR; +} +icalerrorenum prep_capability(struct icalcstps_impl* impl, char* data) +{ return ICAL_NO_ERROR; +} +icalerrorenum prep_calidexpand(struct icalcstps_impl* impl, char* data) +{ + return ICAL_NO_ERROR; +} +icalerrorenum prep_continue(struct icalcstps_impl* impl, char* data) +{ + return ICAL_NO_ERROR; +} +icalerrorenum prep_disconnect(struct icalcstps_impl* impl, char* data) +{ + return ICAL_NO_ERROR; +} +icalerrorenum prep_identify(struct icalcstps_impl* impl, char* data) +{ + return ICAL_NO_ERROR; +} +icalerrorenum prep_starttls(struct icalcstps_impl* impl, char* data) +{ + return ICAL_NO_ERROR; +} +icalerrorenum prep_upnexpand(struct icalcstps_impl* impl, char* data) +{ + return ICAL_NO_ERROR; +} +icalerrorenum prep_sendata(struct icalcstps_impl* impl, char* data) +{ return ICAL_NO_ERROR; +} char* icalcstps_process_incoming(icalcstps* cstp, char* input) { @@ -227,7 +256,7 @@ char* icalcstps_process_incoming(icalcstps* cstp, char* input) return 0; } - i = (char*)index(" ",input_cpy); + i = (char*)strstr(" ",input_cpy); cmd_or_resp = input_cpy; @@ -266,7 +295,7 @@ char* icalcstps_process_incoming(icalcstps* cstp, char* input) error = prep_sendata(impl,data); } - + return 0; } /* Read data until we get a end of data marker */ @@ -308,11 +337,13 @@ void* icalcstpc_free(icalcstpc* cstpc); /* Get the next string to send to the server */ char* icalcstpc_next_output(icalcstpc* cstp) { + return 0; } /* process the next string to send to the server */ int icalcstpc_next_input(icalcstpc* cstp) { + return 0; } /* After icalcstpc_next_input returns a 0, there are responses @@ -330,45 +361,54 @@ icalerrorenum icalcstpc_abort(icalcstpc* cstp) impl->next_output = "ABORT"; + return ICAL_NO_ERROR; } icalerrorenum icalcstpc_authenticate(icalcstpc* cstp, char* mechanism, char* data, char* f(char*)) { + return ICAL_NO_ERROR; } icalerrorenum icalcstpc_capability(icalcstpc* cstp) { -} + return ICAL_NO_ERROR;} icalerrorenum icalcstpc_calidexpand(icalcstpc* cstp,char* calid) { + return ICAL_NO_ERROR; } icalerrorenum icalcstpc_continue(icalcstpc* cstp, unsigned int time) { + return ICAL_NO_ERROR; } icalerrorenum icalcstpc_disconnect(icalcstpc* cstp) { + return ICAL_NO_ERROR; } icalerrorenum icalcstpc_identify(icalcstpc* cstp, char* id) { + return ICAL_NO_ERROR; } icalerrorenum icalcstpc_starttls(icalcstpc* cstp, char* command, char* data, char * f(char*)) { + return ICAL_NO_ERROR; } icalerrorenum icalcstpc_upnexpand(icalcstpc* cstp,char* calid) { + return ICAL_NO_ERROR; } icalerrorenum icalcstpc_sendata(icalcstpc* cstp, unsigned int time, icalcomponent *comp) { + return ICAL_NO_ERROR; } |