Brought libical code up to date with the code in official CVS on 18 Apr 2002
git-svn-id: svn://10.0.0.236/trunk@119279 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -14,7 +14,6 @@ To build all of the Makefiles for your system. If you will be installing the lib
|
||||
|
||||
./configure --prefix=/proj/local/
|
||||
|
||||
|
||||
If configure runs fine, run "make" to build the library and
|
||||
"make install" to install it.
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"MEMBER","const char*",
|
||||
"PARTSTAT","icalparameter_partstat","NEEDS-ACTION;ACCEPTED;DECLINED;TENTATIVE;DELEGATED;COMPLETED;INPROCESS"
|
||||
"RANGE","icalparameter_range","THISANDPRIOR;THISANDFUTURE"
|
||||
"RELATED","icalparameter_related","START;END "
|
||||
"RELATED","icalparameter_related","START;END"
|
||||
"RELTYPE","icalparameter_reltype","PARENT;CHILD;SIBLING"
|
||||
"ROLE","icalparameter_role","CHAIR;REQ-PARTICIPANT;OPT-PARTICIPANT;NON-PARTICIPANT"
|
||||
"RSVP","icalparameter_rsvp","TRUE;FALSE"
|
||||
|
||||
|
@@ -47,7 +47,7 @@
|
||||
"UID","TEXT","TEXT"
|
||||
"URL","URI","URI"
|
||||
"VERSION","TEXT","TEXT"
|
||||
"X","TEXT","TEXT"
|
||||
"X","X","X"
|
||||
"SCOPE","TEXT","TEXT"
|
||||
"MAXRESULTS","INTEGER","INTEGER"
|
||||
"MAXRESULTSSIZE","INTEGER","INTEGER"
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
FILE: icalarray.c
|
||||
CREATOR: Damon Chaplin 07 March 2001
|
||||
|
||||
$Id: icalarray.c,v 1.1 2001-12-21 19:04:01 mikep%oeone.com Exp $
|
||||
$Id: icalarray.c,v 1.2 2002-04-18 18:47:25 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2001, Ximian, Inc.
|
||||
@@ -134,8 +134,14 @@ icalarray_expand (icalarray *array,
|
||||
if (space_needed > array->increment_size)
|
||||
new_space_allocated += space_needed;
|
||||
|
||||
/*
|
||||
new_data = realloc (array->data,
|
||||
new_space_allocated * array->element_size);
|
||||
*/
|
||||
new_data = malloc(new_space_allocated * array->element_size);
|
||||
memcpy(new_data,array->data,array->element_size*array->space_allocated);
|
||||
free(array->data);
|
||||
|
||||
if (new_data) {
|
||||
array->data = new_data;
|
||||
array->space_allocated = new_space_allocated;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
FILE: icalcomponent.c
|
||||
CREATOR: eric 28 April 1999
|
||||
|
||||
$Id: icalcomponent.c,v 1.6 2002-04-03 20:50:23 mostafah%oeone.com Exp $
|
||||
$Id: icalcomponent.c,v 1.7 2002-04-18 18:47:25 mostafah%oeone.com Exp $
|
||||
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -792,17 +792,17 @@ time_t icalcomponent_convert_time(icalproperty *p)
|
||||
|
||||
{
|
||||
#ifdef __sgi
|
||||
tzset();
|
||||
offset = daylight ? altzone : timezone;
|
||||
tzset();
|
||||
offset = daylight ? altzone : timezone;
|
||||
#else
|
||||
|
||||
struct tm *tmp_tm;
|
||||
struct tm *tmp_tm;
|
||||
time_t t;
|
||||
|
||||
t = time(NULL);
|
||||
offset = localtime(&t)->tm_gmtoff;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
convt += offset;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
/* A lexical scanner generated by flex */
|
||||
|
||||
/* Scanner skeleton version:
|
||||
* $Header: /home/befator/cvs/jail/cvsroot/mozilla/other-licenses/libical/src/libical/Attic/icallexer.c,v 1.4 2002-03-14 15:17:50 mikep%oeone.com Exp $
|
||||
* $Header: /home/befator/cvs/jail/cvsroot/mozilla/other-licenses/libical/src/libical/Attic/icallexer.c,v 1.5 2002-04-18 18:47:25 mostafah%oeone.com Exp $
|
||||
*/
|
||||
|
||||
#define FLEX_SCANNER
|
||||
@@ -27,9 +27,7 @@
|
||||
#define YY_FLEX_MINOR_VERSION 5
|
||||
|
||||
#include <stdio.h>
|
||||
#ifndef WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
|
||||
#ifdef c_plusplus
|
||||
@@ -42,6 +40,7 @@
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/* Use prototypes in function declarations. */
|
||||
#define YY_USE_PROTOS
|
||||
@@ -420,7 +419,7 @@ char *yytext_ptr;
|
||||
|
||||
DESCRIPTION:
|
||||
|
||||
$Id: icallexer.c,v 1.4 2002-03-14 15:17:50 mikep%oeone.com Exp $
|
||||
$Id: icallexer.c,v 1.5 2002-04-18 18:47:25 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 1999 Eric Busboom
|
||||
@@ -1397,6 +1396,11 @@ YY_BUFFER_STATE b;
|
||||
}
|
||||
|
||||
|
||||
#ifndef YY_ALWAYS_INTERACTIVE
|
||||
#ifndef YY_NEVER_INTERACTIVE
|
||||
extern int isatty YY_PROTO(( int ));
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef YY_USE_PROTOS
|
||||
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
#include <stdio.h> /* For snprintf */
|
||||
|
||||
#define TMP_BUF_SIZE 1024
|
||||
|
||||
#ifdef WIN32
|
||||
#define snprintf _snprintf
|
||||
#define strcasecmp stricmp
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#define snprintf _snprintf
|
||||
#define strcasecmp stricmp
|
||||
#endif
|
||||
|
||||
|
||||
/* Define the structs for the restrictions. these data are filled out
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
CREATOR: Damon Chaplin 15 March 2001
|
||||
|
||||
|
||||
$Id: icaltimezone.c,v 1.3 2002-04-02 16:14:32 mikep%oeone.com Exp $
|
||||
$Id: icaltimezone.c,v 1.4 2002-04-18 18:47:26 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2001, Damon Chaplin
|
||||
@@ -1420,7 +1420,7 @@ icaltimezone_parse_zone_tab (void)
|
||||
&latitude_seconds,
|
||||
&longitude_degrees, &longitude_minutes,
|
||||
&longitude_seconds,
|
||||
&location) != 7) {
|
||||
location) != 7) {
|
||||
fprintf (stderr, "Invalid timezone description line: %s\n", buf);
|
||||
continue;
|
||||
}
|
||||
@@ -1589,7 +1589,7 @@ icaltimezone_dump_changes (icaltimezone *zone,
|
||||
|
||||
fprintf (fp, "\n");
|
||||
}
|
||||
return 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
FILE: icalvalue.c
|
||||
CREATOR: eric 02 May 1999
|
||||
|
||||
$Id: icalvalue.c,v 1.4 2002-03-14 15:17:52 mikep%oeone.com Exp $
|
||||
$Id: icalvalue.c,v 1.5 2002-04-18 18:47:26 mostafah%oeone.com Exp $
|
||||
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -462,6 +462,15 @@ icalvalue* icalvalue_new_from_string_with_error(icalvalue_kind kind,const char*
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
case ICAL_X_VALUE:
|
||||
{
|
||||
char* dequoted_str = icalmemory_strdup_and_dequote(str);
|
||||
value = icalvalue_new_x(dequoted_str);
|
||||
free(dequoted_str);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
{
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
FILE: icalcstps.c
|
||||
CREATOR: ebusboom 23 Jun 2000
|
||||
|
||||
$Id: icalcstpclient.c,v 1.5 2002-04-02 16:14:35 mikep%oeone.com Exp $
|
||||
$Id: icalcstpclient.c,v 1.6 2002-04-18 18:47:28 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -171,7 +171,7 @@ int icalcstpc_next_input(icalcstpc* cstp, char* line)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* After icalcstpc_next_input returns a 0, there are responses
|
||||
@@ -192,7 +192,7 @@ icalcstpc_response icalcstpc_next_response(icalcstpc* cstp)
|
||||
int icalcstpc_set_timeout(icalcstpc* cstp, int sec)
|
||||
{
|
||||
struct icalcstpc_impl *impl = (struct icalcstpc_impl *)cstp;
|
||||
return 1;
|
||||
return 1;
|
||||
}
|
||||
|
||||
icalerrorenum icalcstpc_abort(icalcstpc* cstp)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
FILE: icaldirset.c
|
||||
CREATOR: eric 28 November 1999
|
||||
|
||||
$Id: icaldirset.c,v 1.4 2002-03-14 15:17:56 mikep%oeone.com Exp $
|
||||
$Id: icaldirset.c,v 1.5 2002-04-18 18:47:28 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -256,6 +256,90 @@ icaldirset* icaldirset_new(const char* dir)
|
||||
return (icaldirset*) impl;
|
||||
}
|
||||
|
||||
icaldirset* icaldirset_new_writer(const char* dir)
|
||||
{
|
||||
struct icaldirset_impl *impl = icaldirset_new_impl();
|
||||
struct stat sbuf;
|
||||
|
||||
if (impl == 0){
|
||||
return 0;
|
||||
}
|
||||
|
||||
icalerror_check_arg_rz( (dir!=0), "dir");
|
||||
|
||||
if (stat(dir,&sbuf) != 0){
|
||||
icalerror_set_errno(ICAL_FILE_ERROR);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* dir is not the name of a direectory*/
|
||||
if (!S_ISDIR(sbuf.st_mode)){
|
||||
icalerror_set_errno(ICAL_USAGE_ERROR);
|
||||
return 0;
|
||||
}
|
||||
|
||||
icaldirset_lock(dir);
|
||||
|
||||
impl = icaldirset_new_impl();
|
||||
|
||||
if (impl ==0){
|
||||
icalerror_set_errno(ICAL_NEWFAILED_ERROR);
|
||||
return 0;
|
||||
}
|
||||
|
||||
impl->directory = pvl_newlist();
|
||||
impl->directory_iterator = 0;
|
||||
impl->dir = (char*)strdup(dir);
|
||||
impl->gauge = 0;
|
||||
impl->first_component = 0;
|
||||
impl->cluster = 0;
|
||||
|
||||
return (icaldirset*) impl;
|
||||
}
|
||||
|
||||
icaldirset* icaldirset_new_reader(const char* dir)
|
||||
{
|
||||
struct icaldirset_impl *impl = icaldirset_new_impl();
|
||||
struct stat sbuf;
|
||||
|
||||
if (impl == 0){
|
||||
return 0;
|
||||
}
|
||||
|
||||
icalerror_check_arg_rz( (dir!=0), "dir");
|
||||
|
||||
if (stat(dir,&sbuf) != 0){
|
||||
icalerror_set_errno(ICAL_FILE_ERROR);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* dir is not the name of a direectory*/
|
||||
if (!S_ISDIR(sbuf.st_mode)){
|
||||
icalerror_set_errno(ICAL_USAGE_ERROR);
|
||||
return 0;
|
||||
}
|
||||
|
||||
icaldirset_lock(dir);
|
||||
|
||||
impl = icaldirset_new_impl();
|
||||
|
||||
if (impl ==0){
|
||||
icalerror_set_errno(ICAL_NEWFAILED_ERROR);
|
||||
return 0;
|
||||
}
|
||||
|
||||
impl->directory = pvl_newlist();
|
||||
impl->directory_iterator = 0;
|
||||
impl->dir = (char*)strdup(dir);
|
||||
impl->gauge = 0;
|
||||
impl->first_component = 0;
|
||||
impl->cluster = 0;
|
||||
|
||||
icaldirset_read_directory(impl);
|
||||
|
||||
return (icaldirset*) impl;
|
||||
}
|
||||
|
||||
void icaldirset_free(icaldirset* s)
|
||||
{
|
||||
struct icaldirset_impl *impl = (struct icaldirset_impl*)s;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
CREATOR: eric 28 November 1999
|
||||
|
||||
|
||||
$Id: icaldirset.h,v 1.2 2001-12-21 18:56:36 mikep%oeone.com Exp $
|
||||
$Id: icaldirset.h,v 1.3 2002-04-18 18:47:30 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -39,6 +39,10 @@ typedef void icaldirset;
|
||||
|
||||
icaldirset* icaldirset_new(const char* path);
|
||||
|
||||
icaldirset* icaldirset_new_reader(const char* path);
|
||||
icaldirset* icaldirset_new_writer(const char* path);
|
||||
|
||||
|
||||
void icaldirset_free(icaldirset* store);
|
||||
|
||||
const char* icaldirset_path(icaldirset* store);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
FILE: icalfileset.c
|
||||
CREATOR: eric 23 December 1999
|
||||
|
||||
$Id: icalfileset.c,v 1.7 2002-03-19 14:20:54 mikep%oeone.com Exp $
|
||||
$Id: icalfileset.c,v 1.8 2002-04-18 18:47:30 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -88,6 +88,16 @@ icalfileset* icalfileset_new(const char* path)
|
||||
return icalfileset_new_open(path, O_RDWR|O_CREAT, 0664);
|
||||
}
|
||||
|
||||
icalfileset* icalfileset_new_reader(const char* path)
|
||||
{
|
||||
return icalfileset_new_open(path, O_RDONLY, 0644);
|
||||
}
|
||||
|
||||
icalfileset* icalfileset_new_writer(const char* path)
|
||||
{
|
||||
return icalfileset_new_open(path, O_WRONLY|O_CREAT|O_TRUNC, 0664);
|
||||
}
|
||||
|
||||
icalfileset* icalfileset_new_open(const char* path, int flags, mode_t mode)
|
||||
{
|
||||
struct icalfileset_impl *impl = icalfileset_new_impl();
|
||||
@@ -335,7 +345,7 @@ icalerrorenum icalfileset_commit(icalfileset* cluster)
|
||||
|
||||
if(icalfileset_safe_saves == 1){
|
||||
#ifndef WIN32
|
||||
snprintf(tmp,ICAL_PATH_MAX,"cp %s %s.bak",impl->path,impl->path);
|
||||
snprintf(tmp,ICAL_PATH_MAX,"cp '%s' '%s.bak'",impl->path,impl->path);
|
||||
#else
|
||||
snprintf(tmp,ICAL_PATH_MAX,"copy %s %s.bak",impl->path,impl->path);
|
||||
#endif
|
||||
@@ -346,7 +356,7 @@ icalerrorenum icalfileset_commit(icalfileset* cluster)
|
||||
}
|
||||
}
|
||||
|
||||
if(lseek(impl->fd,SEEK_SET,0) < 0){
|
||||
if(lseek(impl->fd,0,SEEK_SET) < 0){
|
||||
icalerror_set_errno(ICAL_FILE_ERROR);
|
||||
return ICAL_FILE_ERROR;
|
||||
}
|
||||
@@ -376,7 +386,7 @@ icalerrorenum icalfileset_commit(icalfileset* cluster)
|
||||
return ICAL_FILE_ERROR;
|
||||
}
|
||||
#else
|
||||
chsize( impl->fd, tell( impl->fd ) );
|
||||
chsize( impl->fd, tell( impl->fd ) );
|
||||
#endif
|
||||
|
||||
return ICAL_NO_ERROR;
|
||||
@@ -475,25 +485,31 @@ icalcomponent* icalfileset_fetch(icalfileset* store,const char* uid)
|
||||
for(i = icalcomponent_begin_component(impl->cluster,ICAL_ANY_COMPONENT);
|
||||
icalcompiter_deref(&i)!= 0; icalcompiter_next(&i)){
|
||||
|
||||
icalcomponent *this = icalcompiter_deref(&i);
|
||||
icalcomponent *inner = icalcomponent_get_first_real_component(this);
|
||||
icalcomponent *p;
|
||||
const char *this_uid;
|
||||
icalcomponent *this = icalcompiter_deref(&i);
|
||||
icalcomponent *inner;
|
||||
icalcomponent *p;
|
||||
const char *this_uid;
|
||||
|
||||
if(inner != 0){
|
||||
p = icalcomponent_get_first_property(inner,ICAL_UID_PROPERTY);
|
||||
this_uid = icalproperty_get_uid(p);
|
||||
for(inner = icalcomponent_get_first_component(this,ICAL_ANY_COMPONENT);
|
||||
inner != 0;
|
||||
inner = icalcomponent_get_next_component(this,ICAL_ANY_COMPONENT)){
|
||||
|
||||
if(this_uid==0){
|
||||
icalerror_warn("icalfileset_fetch found a component with no UID");
|
||||
continue;
|
||||
}
|
||||
p = icalcomponent_get_first_property(inner,ICAL_UID_PROPERTY);
|
||||
if ( p )
|
||||
{
|
||||
this_uid = icalproperty_get_uid(p);
|
||||
|
||||
if (strcmp(uid,this_uid)==0){
|
||||
return this;
|
||||
}
|
||||
if(this_uid==0){
|
||||
icalerror_warn("icalfileset_fetch found a component with no UID");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strcmp(uid,this_uid)==0){
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
CREATOR: eric 23 December 1999
|
||||
|
||||
|
||||
$Id: icalfileset.h,v 1.3 2001-12-21 18:56:36 mikep%oeone.com Exp $
|
||||
$Id: icalfileset.h,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -52,6 +52,9 @@ typedef void icalfileset;
|
||||
|
||||
|
||||
icalfileset* icalfileset_new(const char* path);
|
||||
icalfileset* icalfileset_new_reader(const char* path);
|
||||
icalfileset* icalfileset_new_writer(const char* path);
|
||||
|
||||
|
||||
/* Like _new, but takes open() flags for opening the file */
|
||||
icalfileset* icalfileset_new_open(const char* path,
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
icalheapset Store components on the heap
|
||||
icalmysqlset Store components in a mysql database.
|
||||
|
||||
$Id: icalset.c,v 1.3 2001-12-21 18:56:38 mikep%oeone.com Exp $
|
||||
$Id: icalset.c,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -201,6 +201,28 @@ icalset* icalset_new_file(const char* path)
|
||||
return (icalset*)icalset_new_file_from_ref(fset);
|
||||
}
|
||||
|
||||
icalset* icalset_new_file_writer(const char* path)
|
||||
{
|
||||
icalfileset *fset = icalfileset_new_writer(path);
|
||||
|
||||
if(fset == 0){
|
||||
return 0;
|
||||
}
|
||||
|
||||
return (icalset*)icalset_new_file_from_ref(fset);
|
||||
}
|
||||
|
||||
icalset* icalset_new_file_reader(const char* path)
|
||||
{
|
||||
icalfileset *fset = icalfileset_new_reader(path);
|
||||
|
||||
if(fset == 0){
|
||||
return 0;
|
||||
}
|
||||
|
||||
return (icalset*)icalset_new_file_from_ref(fset);
|
||||
}
|
||||
|
||||
icalset* icalset_new_dir_from_ref(icaldirset *dset)
|
||||
{
|
||||
|
||||
@@ -235,6 +257,28 @@ icalset* icalset_new_dir(const char* path)
|
||||
return icalset_new_dir_from_ref(dset);
|
||||
}
|
||||
|
||||
icalset* icalset_new_dir_writer(const char* path)
|
||||
{
|
||||
icaldirset *dset = icaldirset_new_writer(path);
|
||||
|
||||
if(dset == 0){
|
||||
return 0;
|
||||
}
|
||||
|
||||
return icalset_new_dir_from_ref(dset);
|
||||
}
|
||||
|
||||
icalset* icalset_new_dir_reader(const char* path)
|
||||
{
|
||||
icaldirset *dset = icaldirset_new_reader(path);
|
||||
|
||||
if(dset == 0){
|
||||
return 0;
|
||||
}
|
||||
|
||||
return icalset_new_dir_from_ref(dset);
|
||||
}
|
||||
|
||||
icalset* icalset_new_heap(void)
|
||||
{
|
||||
struct icalset_impl *impl = icalset_new_impl();
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
icalheapset Store components on the heap
|
||||
icalmysqlset Store components in a mysql database.
|
||||
|
||||
$Id: icalset.h,v 1.2 2001-12-21 18:56:38 mikep%oeone.com Exp $
|
||||
$Id: icalset.h,v 1.3 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -63,7 +63,13 @@ typedef enum icalset_kind {
|
||||
|
||||
/* Create a specific derived type of set */
|
||||
icalset* icalset_new_file(const char* path);
|
||||
icalset* icalset_new_file_reader(const char* path);
|
||||
icalset* icalset_new_file_writer(const char* path);
|
||||
|
||||
icalset* icalset_new_dir(const char* path);
|
||||
icalset* icalset_new_file_reader(const char* path);
|
||||
icalset* icalset_new_file_writer(const char* path);
|
||||
|
||||
icalset* icalset_new_heap(void);
|
||||
icalset* icalset_new_mysql(const char* path);
|
||||
/*icalset* icalset_new_cap(icalcstp* cstp);*/
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
CREATOR: eric 23 December 1999
|
||||
|
||||
|
||||
$Id: icalss.h,v 1.3 2001-12-21 18:56:39 mikep%oeone.com Exp $
|
||||
$Id: icalss.h,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -29,10 +29,6 @@
|
||||
#ifndef ICALGAUGE_H
|
||||
#define ICALGAUGE_H
|
||||
|
||||
#ifdef WIN32
|
||||
#define mode_t int
|
||||
#endif
|
||||
|
||||
typedef void icalgauge;
|
||||
|
||||
icalgauge* icalgauge_new_from_sql(char* sql);
|
||||
@@ -67,7 +63,7 @@ icalcomponent* icalgauge_new_clone(icalgauge* g, icalcomponent* comp);
|
||||
icalheapset Store components on the heap
|
||||
icalmysqlset Store components in a mysql database.
|
||||
|
||||
$Id: icalss.h,v 1.3 2001-12-21 18:56:39 mikep%oeone.com Exp $
|
||||
$Id: icalss.h,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -116,7 +112,13 @@ typedef enum icalset_kind {
|
||||
|
||||
/* Create a specific derived type of set */
|
||||
icalset* icalset_new_file(const char* path);
|
||||
icalset* icalset_new_file_reader(const char* path);
|
||||
icalset* icalset_new_file_writer(const char* path);
|
||||
|
||||
icalset* icalset_new_dir(const char* path);
|
||||
icalset* icalset_new_file_reader(const char* path);
|
||||
icalset* icalset_new_file_writer(const char* path);
|
||||
|
||||
icalset* icalset_new_heap(void);
|
||||
icalset* icalset_new_mysql(const char* path);
|
||||
/*icalset* icalset_new_cap(icalcstp* cstp);*/
|
||||
@@ -168,7 +170,7 @@ icalcomponent* icalset_get_next_component(icalset* set);
|
||||
CREATOR: eric 23 December 1999
|
||||
|
||||
|
||||
$Id: icalss.h,v 1.3 2001-12-21 18:56:39 mikep%oeone.com Exp $
|
||||
$Id: icalss.h,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -197,6 +199,10 @@ icalcomponent* icalset_get_next_component(icalset* set);
|
||||
#include <sys/stat.h> /* For open() flags and mode */
|
||||
#include <fcntl.h> /* For open() flags and mode */
|
||||
|
||||
#ifdef WIN32
|
||||
#define mode_t int
|
||||
#endif
|
||||
|
||||
extern int icalfileset_safe_saves;
|
||||
|
||||
typedef void icalfileset;
|
||||
@@ -209,6 +215,9 @@ typedef void icalfileset;
|
||||
|
||||
|
||||
icalfileset* icalfileset_new(const char* path);
|
||||
icalfileset* icalfileset_new_reader(const char* path);
|
||||
icalfileset* icalfileset_new_writer(const char* path);
|
||||
|
||||
|
||||
/* Like _new, but takes open() flags for opening the file */
|
||||
icalfileset* icalfileset_new_open(const char* path,
|
||||
@@ -270,7 +279,7 @@ icalcomponent* icalfileset_get_component(icalfileset* cluster);
|
||||
CREATOR: eric 28 November 1999
|
||||
|
||||
|
||||
$Id: icalss.h,v 1.3 2001-12-21 18:56:39 mikep%oeone.com Exp $
|
||||
$Id: icalss.h,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -304,6 +313,10 @@ typedef void icaldirset;
|
||||
|
||||
icaldirset* icaldirset_new(const char* path);
|
||||
|
||||
icaldirset* icaldirset_new_reader(const char* path);
|
||||
icaldirset* icaldirset_new_writer(const char* path);
|
||||
|
||||
|
||||
void icaldirset_free(icaldirset* store);
|
||||
|
||||
const char* icaldirset_path(icaldirset* store);
|
||||
@@ -351,7 +364,7 @@ icalcomponent* icaldirset_get_next_component(icaldirset* store);
|
||||
CREATOR: eric 23 December 1999
|
||||
|
||||
|
||||
$Id: icalss.h,v 1.3 2001-12-21 18:56:39 mikep%oeone.com Exp $
|
||||
$Id: icalss.h,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -416,7 +429,7 @@ icalset* icalcalendar_get_freebusy(icalcalendar* calendar);
|
||||
CREATOR: eric 21 Aug 2000
|
||||
|
||||
|
||||
$Id: icalss.h,v 1.3 2001-12-21 18:56:39 mikep%oeone.com Exp $
|
||||
$Id: icalss.h,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -459,7 +472,7 @@ char* icalclassify_class_to_string(icalproperty_xlicclass c);
|
||||
CREATOR: eric 21 Aug 2000
|
||||
|
||||
|
||||
$Id: icalss.h,v 1.3 2001-12-21 18:56:39 mikep%oeone.com Exp $
|
||||
$Id: icalss.h,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -511,7 +524,7 @@ void icalspanlist_dump(icalspanlist* s);
|
||||
CREATOR: eric 07 Nov 2000
|
||||
|
||||
|
||||
$Id: icalss.h,v 1.3 2001-12-21 18:56:39 mikep%oeone.com Exp $
|
||||
$Id: icalss.h,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
$Locker: $
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -580,7 +593,7 @@ icalcomponent* icalmessage_new_error_reply(icalcomponent* c,
|
||||
FILE: icalcstp.h
|
||||
CREATOR: eric 20 April 1999
|
||||
|
||||
$Id: icalss.h,v 1.3 2001-12-21 18:56:39 mikep%oeone.com Exp $
|
||||
$Id: icalss.h,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -658,7 +671,7 @@ icalcstp_command icalcstp_string_to_command(const char* str);
|
||||
FILE: icalcstpclient.h
|
||||
CREATOR: eric 4 Feb 01
|
||||
|
||||
$Id: icalss.h,v 1.3 2001-12-21 18:56:39 mikep%oeone.com Exp $
|
||||
$Id: icalss.h,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
@@ -756,7 +769,7 @@ icalerrorenum icalcstpc_sendata(icalcstpc* cstp, unsigned int time,
|
||||
FILE: icalcstpserver.h
|
||||
CREATOR: eric 13 Feb 01
|
||||
|
||||
$Id: icalss.h,v 1.3 2001-12-21 18:56:39 mikep%oeone.com Exp $
|
||||
$Id: icalss.h,v 1.4 2002-04-18 18:47:31 mostafah%oeone.com Exp $
|
||||
|
||||
|
||||
(C) COPYRIGHT 2000, Eric Busboom, http://www.softwarestudio.org
|
||||
|
||||
Reference in New Issue
Block a user