Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
icalderivedparameter.c File Reference
#include "icalparameter.h"
#include "icalparameterimpl.h"
#include "icalproperty.h"
#include "icalerror.h"
#include "icalmemory.h"
#include <stdlib.h>
#include <errno.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  icalparameter_kind_map
struct  icalparameter_value_kind_map
struct  icalparameter_map

Functions

icalvalue_kind icalparameter_value_to_value_kind (icalparameter_value value)
struct icalparameter_implicalparameter_new_impl (icalparameter_kind kind)
icalparameter * icalparameter_new_delegatedfrom (const char *v)
const char * icalparameter_get_delegatedfrom (const icalparameter *param)
void icalparameter_set_delegatedfrom (icalparameter *param, const char *v)
icalparameter * icalparameter_new_related (icalparameter_related v)
icalparameter_related icalparameter_get_related (const icalparameter *param)
void icalparameter_set_related (icalparameter *param, icalparameter_related v)
icalparameter * icalparameter_new_sentby (const char *v)
const char * icalparameter_get_sentby (const icalparameter *param)
void icalparameter_set_sentby (icalparameter *param, const char *v)
icalparameter * icalparameter_new_language (const char *v)
const char * icalparameter_get_language (const icalparameter *param)
void icalparameter_set_language (icalparameter *param, const char *v)
icalparameter * icalparameter_new_reltype (icalparameter_reltype v)
icalparameter_reltype icalparameter_get_reltype (const icalparameter *param)
void icalparameter_set_reltype (icalparameter *param, icalparameter_reltype v)
icalparameter * icalparameter_new_encoding (icalparameter_encoding v)
icalparameter_encoding icalparameter_get_encoding (const icalparameter *param)
void icalparameter_set_encoding (icalparameter *param, icalparameter_encoding v)
icalparameter * icalparameter_new_altrep (const char *v)
const char * icalparameter_get_altrep (const icalparameter *param)
void icalparameter_set_altrep (icalparameter *param, const char *v)
icalparameter * icalparameter_new_fmttype (const char *v)
const char * icalparameter_get_fmttype (const icalparameter *param)
void icalparameter_set_fmttype (icalparameter *param, const char *v)
icalparameter * icalparameter_new_fbtype (icalparameter_fbtype v)
icalparameter_fbtype icalparameter_get_fbtype (const icalparameter *param)
void icalparameter_set_fbtype (icalparameter *param, icalparameter_fbtype v)
icalparameter * icalparameter_new_rsvp (icalparameter_rsvp v)
icalparameter_rsvp icalparameter_get_rsvp (const icalparameter *param)
void icalparameter_set_rsvp (icalparameter *param, icalparameter_rsvp v)
icalparameter * icalparameter_new_range (icalparameter_range v)
icalparameter_range icalparameter_get_range (const icalparameter *param)
void icalparameter_set_range (icalparameter *param, icalparameter_range v)
icalparameter * icalparameter_new_delegatedto (const char *v)
const char * icalparameter_get_delegatedto (const icalparameter *param)
void icalparameter_set_delegatedto (icalparameter *param, const char *v)
icalparameter * icalparameter_new_cn (const char *v)
const char * icalparameter_get_cn (const icalparameter *param)
void icalparameter_set_cn (icalparameter *param, const char *v)
icalparameter * icalparameter_new_role (icalparameter_role v)
icalparameter_role icalparameter_get_role (const icalparameter *param)
void icalparameter_set_role (icalparameter *param, icalparameter_role v)
icalparameter * icalparameter_new_xliccomparetype (icalparameter_xliccomparetype v)
icalparameter_xliccomparetype icalparameter_get_xliccomparetype (const icalparameter *param)
void icalparameter_set_xliccomparetype (icalparameter *param, icalparameter_xliccomparetype v)
icalparameter * icalparameter_new_partstat (icalparameter_partstat v)
icalparameter_partstat icalparameter_get_partstat (const icalparameter *param)
void icalparameter_set_partstat (icalparameter *param, icalparameter_partstat v)
icalparameter * icalparameter_new_xlicerrortype (icalparameter_xlicerrortype v)
icalparameter_xlicerrortype icalparameter_get_xlicerrortype (const icalparameter *param)
void icalparameter_set_xlicerrortype (icalparameter *param, icalparameter_xlicerrortype v)
icalparameter * icalparameter_new_member (const char *v)
const char * icalparameter_get_member (const icalparameter *param)
void icalparameter_set_member (icalparameter *param, const char *v)
icalparameter * icalparameter_new_x (const char *v)
const char * icalparameter_get_x (const icalparameter *param)
void icalparameter_set_x (icalparameter *param, const char *v)
icalparameter * icalparameter_new_cutype (icalparameter_cutype v)
icalparameter_cutype icalparameter_get_cutype (const icalparameter *param)
void icalparameter_set_cutype (icalparameter *param, icalparameter_cutype v)
icalparameter * icalparameter_new_tzid (const char *v)
const char * icalparameter_get_tzid (const icalparameter *param)
void icalparameter_set_tzid (icalparameter *param, const char *v)
icalparameter * icalparameter_new_value (icalparameter_value v)
icalparameter_value icalparameter_get_value (const icalparameter *param)
void icalparameter_set_value (icalparameter *param, icalparameter_value v)
icalparameter * icalparameter_new_dir (const char *v)
const char * icalparameter_get_dir (const icalparameter *param)
void icalparameter_set_dir (icalparameter *param, const char *v)
const char * icalparameter_kind_to_string (icalparameter_kind kind)
icalparameter_kind icalparameter_string_to_kind (const char *string)
const char * icalparameter_enum_to_string (int e)
int icalparameter_string_to_enum (const char *str)
icalparameter * icalparameter_new_from_value_string (icalparameter_kind kind, const char *val)

Variables

static struct icalparameter_value_kind_map [15]
static struct icalparameter_kind_map [24]
static struct icalparameter_map []

Class Documentation

struct icalparameter_kind_map

Definition at line 52 of file icalderivedparameter.c.

Class Members
icalparameter_kind kind
char * name
struct icalparameter_value_kind_map

Definition at line 61 of file icalderivedparameter.c.

Class Members
icalvalue_kind kind
icalparameter_value value
struct icalparameter_map

Definition at line 68 of file icalderivedparameter.c.

Collaboration diagram for icalparameter_map:
Class Members
int enumeration
icalparameter_kind kind
const char * str

Function Documentation

Definition at line 1126 of file icalderivedparameter.c.

Here is the caller graph for this function:

const char* icalparameter_get_altrep ( const icalparameter *  param)

Definition at line 439 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
    icalerror_check_arg_rz( (param!=0), "param");
    return (const char*)((struct icalparameter_impl*)param)->string;
}

Here is the call graph for this function:

const char* icalparameter_get_cn ( const icalparameter *  param)

Definition at line 667 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
    icalerror_check_arg_rz( (param!=0), "param");
    return (const char*)((struct icalparameter_impl*)param)->string;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 938 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
icalerror_check_arg( (param!=0), "param");
     if ( ((struct icalparameter_impl*)param)->string != 0){
        return ICAL_CUTYPE_X;
        }

return (icalparameter_cutype)((struct icalparameter_impl*)param)->data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* icalparameter_get_delegatedfrom ( const icalparameter *  param)

Definition at line 208 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
    icalerror_check_arg_rz( (param!=0), "param");
    return (const char*)((struct icalparameter_impl*)param)->string;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* icalparameter_get_delegatedto ( const icalparameter *  param)

Definition at line 631 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
    icalerror_check_arg_rz( (param!=0), "param");
    return (const char*)((struct icalparameter_impl*)param)->string;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* icalparameter_get_dir ( const icalparameter *  param)

Definition at line 1057 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
    icalerror_check_arg_rz( (param!=0), "param");
    return (const char*)((struct icalparameter_impl*)param)->string;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 398 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
icalerror_check_arg( (param!=0), "param");
     if ( ((struct icalparameter_impl*)param)->string != 0){
        return ICAL_ENCODING_X;
        }

return (icalparameter_encoding)((struct icalparameter_impl*)param)->data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 512 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
icalerror_check_arg( (param!=0), "param");
     if ( ((struct icalparameter_impl*)param)->string != 0){
        return ICAL_FBTYPE_X;
        }

return (icalparameter_fbtype)((struct icalparameter_impl*)param)->data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* icalparameter_get_fmttype ( const icalparameter *  param)

Definition at line 475 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
    icalerror_check_arg_rz( (param!=0), "param");
    return (const char*)((struct icalparameter_impl*)param)->string;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* icalparameter_get_language ( const icalparameter *  param)

Definition at line 319 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
    icalerror_check_arg_rz( (param!=0), "param");
    return (const char*)((struct icalparameter_impl*)param)->string;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* icalparameter_get_member ( const icalparameter *  param)

Definition at line 865 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
    icalerror_check_arg_rz( (param!=0), "param");
    return (const char*)((struct icalparameter_impl*)param)->string;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 785 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
icalerror_check_arg( (param!=0), "param");
     if ( ((struct icalparameter_impl*)param)->string != 0){
        return ICAL_PARTSTAT_X;
        }

return (icalparameter_partstat)((struct icalparameter_impl*)param)->data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 593 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
icalerror_check_arg( (param!=0), "param");

return (icalparameter_range)((struct icalparameter_impl*)param)->data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 245 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
icalerror_check_arg( (param!=0), "param");

return (icalparameter_related)((struct icalparameter_impl*)param)->data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 356 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
icalerror_check_arg( (param!=0), "param");
     if ( ((struct icalparameter_impl*)param)->string != 0){
        return ICAL_RELTYPE_X;
        }

return (icalparameter_reltype)((struct icalparameter_impl*)param)->data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalparameter_role icalparameter_get_role ( const icalparameter *  param)

Definition at line 704 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
icalerror_check_arg( (param!=0), "param");
     if ( ((struct icalparameter_impl*)param)->string != 0){
        return ICAL_ROLE_X;
        }

return (icalparameter_role)((struct icalparameter_impl*)param)->data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalparameter_rsvp icalparameter_get_rsvp ( const icalparameter *  param)

Definition at line 554 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
icalerror_check_arg( (param!=0), "param");

return (icalparameter_rsvp)((struct icalparameter_impl*)param)->data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* icalparameter_get_sentby ( const icalparameter *  param)

Definition at line 283 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
    icalerror_check_arg_rz( (param!=0), "param");
    return (const char*)((struct icalparameter_impl*)param)->string;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* icalparameter_get_tzid ( const icalparameter *  param)

Definition at line 979 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
    icalerror_check_arg_rz( (param!=0), "param");
    return (const char*)((struct icalparameter_impl*)param)->string;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1016 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
icalerror_check_arg( (param!=0), "param");
     if ( ((struct icalparameter_impl*)param)->string != 0){
        return ICAL_VALUE_X;
        }

return (icalparameter_value)((struct icalparameter_impl*)param)->data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* icalparameter_get_x ( const icalparameter *  param)

Definition at line 901 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
    icalerror_check_arg_rz( (param!=0), "param");
    return (const char*)((struct icalparameter_impl*)param)->string;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 746 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
icalerror_check_arg( (param!=0), "param");

return (icalparameter_xliccomparetype)((struct icalparameter_impl*)param)->data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 827 of file icalderivedparameter.c.

{
   icalerror_clear_errno();
icalerror_check_arg( (param!=0), "param");

return (icalparameter_xlicerrortype)((struct icalparameter_impl*)param)->data;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1074 of file icalderivedparameter.c.

{
    int i;

    for (i=0; parameter_map[i].kind != ICAL_NO_PARAMETER; i++) {
       if (parameter_map[i].kind == kind) {
           return parameter_map[i].name;
       }
    }

    return 0;

}

Here is the caller graph for this function:

icalparameter* icalparameter_new_altrep ( const char *  v)

Definition at line 420 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz( (v!=0),"v");
   impl = icalparameter_new_impl(ICAL_ALTREP_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_altrep((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

icalparameter* icalparameter_new_cn ( const char *  v)

Definition at line 648 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz( (v!=0),"v");
   impl = icalparameter_new_impl(ICAL_CN_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_cn((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 918 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz(v >= ICAL_CUTYPE_X,"v");
    icalerror_check_arg_rz(v < ICAL_CUTYPE_NONE,"v");
   impl = icalparameter_new_impl(ICAL_CUTYPE_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_cutype((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalparameter* icalparameter_new_delegatedfrom ( const char *  v)

Definition at line 189 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz( (v!=0),"v");
   impl = icalparameter_new_impl(ICAL_DELEGATEDFROM_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_delegatedfrom((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalparameter* icalparameter_new_delegatedto ( const char *  v)

Definition at line 612 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz( (v!=0),"v");
   impl = icalparameter_new_impl(ICAL_DELEGATEDTO_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_delegatedto((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalparameter* icalparameter_new_dir ( const char *  v)

Definition at line 1038 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz( (v!=0),"v");
   impl = icalparameter_new_impl(ICAL_DIR_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_dir((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Definition at line 378 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz(v >= ICAL_ENCODING_X,"v");
    icalerror_check_arg_rz(v < ICAL_ENCODING_NONE,"v");
   impl = icalparameter_new_impl(ICAL_ENCODING_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_encoding((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Definition at line 492 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz(v >= ICAL_FBTYPE_X,"v");
    icalerror_check_arg_rz(v < ICAL_FBTYPE_NONE,"v");
   impl = icalparameter_new_impl(ICAL_FBTYPE_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_fbtype((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalparameter* icalparameter_new_fmttype ( const char *  v)

Definition at line 456 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz( (v!=0),"v");
   impl = icalparameter_new_impl(ICAL_FMTTYPE_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_fmttype((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

icalparameter* icalparameter_new_from_value_string ( icalparameter_kind  kind,
const char *  val 
)

Definition at line 1157 of file icalderivedparameter.c.

{

    struct icalparameter_impl* param=0;
    int found_kind = 0;
    int i;

    icalerror_check_arg_rz((val!=0),"val");

    /* Search through the parameter map to find a matching kind */

    param = icalparameter_new_impl(kind);

    for (i=0; icalparameter_map[i].kind != ICAL_NO_PARAMETER; i++){
        if(kind == icalparameter_map[i].kind) {
            found_kind = 1;
            if(strcmp(val,icalparameter_map[i].str) == 0) {

                param->data = (int)icalparameter_map[i].enumeration;
                return param;
            }
        }
    }
    
    if(found_kind == 1){
        /* The kind was in the parameter map, but the string did not
           match, so assume that it is an alternate value, like an
           X-value.*/
        
        icalparameter_set_xvalue(param, val);

    } else {
 
        /* If the kind was not found, then it must be a string type */
        
        ((struct icalparameter_impl*)param)->string = icalmemory_strdup(val);

    }

   return param;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 49 of file icalparameter.c.

{
    struct icalparameter_impl* v;

    if ( ( v = (struct icalparameter_impl*)
          malloc(sizeof(struct icalparameter_impl))) == 0) {
       icalerror_set_errno(ICAL_NEWFAILED_ERROR);
       return 0;
    }
    
    strcpy(v->id,"para");

    v->kind = kind;
    v->size = 0;
    v->string = 0;
    v->x_name = 0;
    v->parent = 0;
    v->data = 0;

    return v;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalparameter* icalparameter_new_language ( const char *  v)

Definition at line 300 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz( (v!=0),"v");
   impl = icalparameter_new_impl(ICAL_LANGUAGE_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_language((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

icalparameter* icalparameter_new_member ( const char *  v)

Definition at line 846 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz( (v!=0),"v");
   impl = icalparameter_new_impl(ICAL_MEMBER_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_member((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Definition at line 765 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz(v >= ICAL_PARTSTAT_X,"v");
    icalerror_check_arg_rz(v < ICAL_PARTSTAT_NONE,"v");
   impl = icalparameter_new_impl(ICAL_PARTSTAT_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_partstat((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 573 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz(v >= ICAL_RANGE_X,"v");
    icalerror_check_arg_rz(v < ICAL_RANGE_NONE,"v");
   impl = icalparameter_new_impl(ICAL_RANGE_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_range((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Definition at line 225 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz(v >= ICAL_RELATED_X,"v");
    icalerror_check_arg_rz(v < ICAL_RELATED_NONE,"v");
   impl = icalparameter_new_impl(ICAL_RELATED_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_related((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Definition at line 336 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz(v >= ICAL_RELTYPE_X,"v");
    icalerror_check_arg_rz(v < ICAL_RELTYPE_NONE,"v");
   impl = icalparameter_new_impl(ICAL_RELTYPE_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_reltype((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Definition at line 684 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz(v >= ICAL_ROLE_X,"v");
    icalerror_check_arg_rz(v < ICAL_ROLE_NONE,"v");
   impl = icalparameter_new_impl(ICAL_ROLE_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_role((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 534 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz(v >= ICAL_RSVP_X,"v");
    icalerror_check_arg_rz(v < ICAL_RSVP_NONE,"v");
   impl = icalparameter_new_impl(ICAL_RSVP_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_rsvp((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalparameter* icalparameter_new_sentby ( const char *  v)

Definition at line 264 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz( (v!=0),"v");
   impl = icalparameter_new_impl(ICAL_SENTBY_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_sentby((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

icalparameter* icalparameter_new_tzid ( const char *  v)

Definition at line 960 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz( (v!=0),"v");
   impl = icalparameter_new_impl(ICAL_TZID_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_tzid((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 996 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz(v >= ICAL_VALUE_X,"v");
    icalerror_check_arg_rz(v < ICAL_VALUE_NONE,"v");
   impl = icalparameter_new_impl(ICAL_VALUE_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_value((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalparameter* icalparameter_new_x ( const char *  v)

Definition at line 882 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz( (v!=0),"v");
   impl = icalparameter_new_impl(ICAL_X_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_x((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 726 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz(v >= ICAL_XLICCOMPARETYPE_X,"v");
    icalerror_check_arg_rz(v < ICAL_XLICCOMPARETYPE_NONE,"v");
   impl = icalparameter_new_impl(ICAL_XLICCOMPARETYPE_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_xliccomparetype((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 807 of file icalderivedparameter.c.

{
   struct icalparameter_impl *impl;
   icalerror_clear_errno();
   icalerror_check_arg_rz(v >= ICAL_XLICERRORTYPE_X,"v");
    icalerror_check_arg_rz(v < ICAL_XLICERRORTYPE_NONE,"v");
   impl = icalparameter_new_impl(ICAL_XLICERRORTYPE_PARAMETER);
   if (impl == 0) {
      return 0;
   }

   icalparameter_set_xlicerrortype((icalparameter*) impl,v);
   if (icalerrno != ICAL_NO_ERROR) {
      icalparameter_free((icalparameter*) impl);
      return 0;
   }

   return (icalparameter*) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_altrep ( icalparameter *  param,
const char *  v 
)

Definition at line 446 of file icalderivedparameter.c.

{
   icalerror_check_arg_rv( (v!=0),"v");
   icalerror_check_arg_rv( (param!=0), "param");
   icalerror_clear_errno();
   
   ((struct icalparameter_impl*)param)->string = icalmemory_strdup(v);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_cn ( icalparameter *  param,
const char *  v 
)

Definition at line 674 of file icalderivedparameter.c.

{
   icalerror_check_arg_rv( (v!=0),"v");
   icalerror_check_arg_rv( (param!=0), "param");
   icalerror_clear_errno();
   
   ((struct icalparameter_impl*)param)->string = icalmemory_strdup(v);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_cutype ( icalparameter *  param,
icalparameter_cutype  v 
)

Definition at line 949 of file icalderivedparameter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_delegatedfrom ( icalparameter *  param,
const char *  v 
)

Definition at line 215 of file icalderivedparameter.c.

{
   icalerror_check_arg_rv( (v!=0),"v");
   icalerror_check_arg_rv( (param!=0), "param");
   icalerror_clear_errno();
   
   ((struct icalparameter_impl*)param)->string = icalmemory_strdup(v);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_delegatedto ( icalparameter *  param,
const char *  v 
)

Definition at line 638 of file icalderivedparameter.c.

{
   icalerror_check_arg_rv( (v!=0),"v");
   icalerror_check_arg_rv( (param!=0), "param");
   icalerror_clear_errno();
   
   ((struct icalparameter_impl*)param)->string = icalmemory_strdup(v);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_dir ( icalparameter *  param,
const char *  v 
)

Definition at line 1064 of file icalderivedparameter.c.

{
   icalerror_check_arg_rv( (v!=0),"v");
   icalerror_check_arg_rv( (param!=0), "param");
   icalerror_clear_errno();
   
   ((struct icalparameter_impl*)param)->string = icalmemory_strdup(v);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_encoding ( icalparameter *  param,
icalparameter_encoding  v 
)

Definition at line 409 of file icalderivedparameter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_fbtype ( icalparameter *  param,
icalparameter_fbtype  v 
)

Definition at line 523 of file icalderivedparameter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_fmttype ( icalparameter *  param,
const char *  v 
)

Definition at line 482 of file icalderivedparameter.c.

{
   icalerror_check_arg_rv( (v!=0),"v");
   icalerror_check_arg_rv( (param!=0), "param");
   icalerror_clear_errno();
   
   ((struct icalparameter_impl*)param)->string = icalmemory_strdup(v);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_language ( icalparameter *  param,
const char *  v 
)

Definition at line 326 of file icalderivedparameter.c.

{
   icalerror_check_arg_rv( (v!=0),"v");
   icalerror_check_arg_rv( (param!=0), "param");
   icalerror_clear_errno();
   
   ((struct icalparameter_impl*)param)->string = icalmemory_strdup(v);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_member ( icalparameter *  param,
const char *  v 
)

Definition at line 872 of file icalderivedparameter.c.

{
   icalerror_check_arg_rv( (v!=0),"v");
   icalerror_check_arg_rv( (param!=0), "param");
   icalerror_clear_errno();
   
   ((struct icalparameter_impl*)param)->string = icalmemory_strdup(v);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_partstat ( icalparameter *  param,
icalparameter_partstat  v 
)

Definition at line 796 of file icalderivedparameter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_range ( icalparameter *  param,
icalparameter_range  v 
)

Definition at line 601 of file icalderivedparameter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_related ( icalparameter *  param,
icalparameter_related  v 
)

Definition at line 253 of file icalderivedparameter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_reltype ( icalparameter *  param,
icalparameter_reltype  v 
)

Definition at line 367 of file icalderivedparameter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_role ( icalparameter *  param,
icalparameter_role  v 
)

Definition at line 715 of file icalderivedparameter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_rsvp ( icalparameter *  param,
icalparameter_rsvp  v 
)

Definition at line 562 of file icalderivedparameter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_sentby ( icalparameter *  param,
const char *  v 
)

Definition at line 290 of file icalderivedparameter.c.

{
   icalerror_check_arg_rv( (v!=0),"v");
   icalerror_check_arg_rv( (param!=0), "param");
   icalerror_clear_errno();
   
   ((struct icalparameter_impl*)param)->string = icalmemory_strdup(v);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_tzid ( icalparameter *  param,
const char *  v 
)

Definition at line 986 of file icalderivedparameter.c.

{
   icalerror_check_arg_rv( (v!=0),"v");
   icalerror_check_arg_rv( (param!=0), "param");
   icalerror_clear_errno();
   
   ((struct icalparameter_impl*)param)->string = icalmemory_strdup(v);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_value ( icalparameter *  param,
icalparameter_value  v 
)

Definition at line 1027 of file icalderivedparameter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalparameter_set_x ( icalparameter *  param,
const char *  v 
)

Definition at line 908 of file icalderivedparameter.c.

{
   icalerror_check_arg_rv( (v!=0),"v");
   icalerror_check_arg_rv( (param!=0), "param");
   icalerror_clear_errno();
   
   ((struct icalparameter_impl*)param)->string = icalmemory_strdup(v);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 754 of file icalderivedparameter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 835 of file icalderivedparameter.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1142 of file icalderivedparameter.c.

{
    int i;

    icalerror_check_arg_rz(str != 0,"str");

    for (i=0; icalparameter_map[i].kind != ICAL_NO_PARAMETER; i++){
        if(strcmp(str,icalparameter_map[i].str) == 0) {
            return icalparameter_map[i].enumeration;
        }
    }

    return 0;
}

Here is the caller graph for this function:

Definition at line 1088 of file icalderivedparameter.c.

{
    int i;

    if (string ==0 ) { 
       return ICAL_NO_PARAMETER;
    }

    for (i=0; parameter_map[i].kind  != ICAL_NO_PARAMETER; i++) {

       if (strcmp(parameter_map[i].name, string) == 0) {
           return parameter_map[i].kind;
       }
    }

    if(strncmp(string,"X-",2)==0){
       return ICAL_X_PARAMETER;
    }

    return ICAL_NO_PARAMETER;
}

Here is the caller graph for this function:

Definition at line 1111 of file icalderivedparameter.c.

{
    int i;

    for (i=0; value_kind_map[i].kind  != ICAL_NO_VALUE; i++) {

       if (value_kind_map[i].value == value) {
           return value_kind_map[i].kind;
       }
    }

    return ICAL_NO_VALUE;
}

Here is the caller graph for this function:


Variable Documentation

struct icalparameter_kind_map[24] [static]
Initial value:

Definition at line 94 of file icalderivedparameter.c.

struct icalparameter_map[] [static]

Definition at line 121 of file icalderivedparameter.c.

struct icalparameter_value_kind_map[15] [static]