aboutsummaryrefslogtreecommitdiffstats
path: root/libical/src/libicalss/icalcstp.c
diff options
context:
space:
mode:
authornobody <nobody@localhost>2001-07-25 08:33:17 +0800
committernobody <nobody@localhost>2001-07-25 08:33:17 +0800
commitd41f196170aae9380231fc869b37fc85864432c5 (patch)
tree8ef1fb6f0f43735a382bada2f369dde7d04387f4 /libical/src/libicalss/icalcstp.c
parente951bf718e130e43567187f4b71c27672cd6e996 (diff)
downloadgsoc2013-evolution-d41f196170aae9380231fc869b37fc85864432c5.tar
gsoc2013-evolution-d41f196170aae9380231fc869b37fc85864432c5.tar.gz
gsoc2013-evolution-d41f196170aae9380231fc869b37fc85864432c5.tar.bz2
gsoc2013-evolution-d41f196170aae9380231fc869b37fc85864432c5.tar.lz
gsoc2013-evolution-d41f196170aae9380231fc869b37fc85864432c5.tar.xz
gsoc2013-evolution-d41f196170aae9380231fc869b37fc85864432c5.tar.zst
gsoc2013-evolution-d41f196170aae9380231fc869b37fc85864432c5.zip
This commit was manufactured by cvs2svn to create tagGTKHTML_0_11_0
'GTKHTML_0_11_0'. svn path=/tags/GTKHTML_0_11_0/; revision=11386
Diffstat (limited to 'libical/src/libicalss/icalcstp.c')
-rw-r--r--libical/src/libicalss/icalcstp.c116
1 files changed, 0 insertions, 116 deletions
diff --git a/libical/src/libicalss/icalcstp.c b/libical/src/libicalss/icalcstp.c
deleted file mode 100644
index 3b212b424a..0000000000
--- a/libical/src/libicalss/icalcstp.c
+++ /dev/null
@@ -1,116 +0,0 @@
-/* -*- Mode: C -*-
- ======================================================================
- FILE: icalcstps.c
- CREATOR: ebusboom 23 Jun 2000
-
- $Id$
- $Locker$
-
- (C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of either:
-
- The LGPL as published by the Free Software Foundation, version
- 2.1, available at: http://www.fsf.org/copyleft/lesser.html
-
- Or:
-
- The Mozilla Public License Version 1.0. You may obtain a copy of
- the License at http://www.mozilla.org/MPL/
-
-
- ======================================================================*/
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include "ical.h"
-#include "icalcstp.h"
-#include "pvl.h"
-
-#include <sys/types.h> /* For send(), others */
-#include <sys/socket.h> /* For send(), others. */
-#include <unistd.h> /* For alarm */
-#include <errno.h>
-#include <stdlib.h> /* for malloc */
-#include <string.h>
-
-
-struct command_map {
- enum icalcstp_command command;
- char *str;
-} command_map[] =
-{
- {ICAL_ABORT_COMMAND,"ABORT"},
- {ICAL_AUTHENTICATE_COMMAND,"AUTHENTICATE"},
- {ICAL_CAPABILITY_COMMAND,"CAPABILITY"},
- {ICAL_CONTINUE_COMMAND,"CONTINUE"},
- {ICAL_CALIDEXPAND_COMMAND,"CALIDEXPAND"},
- {ICAL_IDENTIFY_COMMAND,"IDENTIFY"},
- {ICAL_DISCONNECT_COMMAND,"DISCONNECT"},
- {ICAL_SENDDATA_COMMAND,"SENDDATA"},
- {ICAL_STARTTLS_COMMAND,"STARTTLS"},
- {ICAL_UPNEXPAND_COMMAND,"UPNEXPAND"},
- {ICAL_UNKNOWN_COMMAND,"UNKNOWN"}
-};
-
-
-icalcstp_command icalcstp_line_command(char* line)
-{
- int i;
-
- for(i = 0; command_map[i].command != ICAL_UNKNOWN_COMMAND; i++){
- size_t l = strlen(command_map[i].str);
-
- if(strncmp(line, command_map[i].str, l) == 0){
- return command_map[i].command;
- }
-
- }
-
- return ICAL_UNKNOWN_COMMAND;
-}
-
-icalrequeststatus icalcstp_line_response_code(char* line)
-{
- struct icalreqstattype rs;
-
- rs = icalreqstattype_from_string(line);
-
- return rs.code;
-}
-
-int icalcstp_line_is_endofdata(char* line)
-{
- if(line[0] == '.' && line[1] == '\n'){
- return 1;
- }
-
- return 0;
-
-}
-
-int icalcstp_line_is_mime(char* line)
-{
-}
-
-
-const char* icalcstp_command_to_string(icalcstp_command command){
-
- int i;
-
- for(i = 0; command_map[i].command != ICAL_UNKNOWN_COMMAND; i++){
- size_t l = strlen(command_map[i].str);
-
- if(command_map[i].command == command){
- return command_map[i].str;
- }
-
- }
-
- return command_map[i].str;
-
-}
-