Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
icalderivedvalue.c File Reference
#include "icalerror.h"
#include "icalmemory.h"
#include "icalparser.h"
#include "icalenums.h"
#include "icalvalueimpl.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include <errno.h>
#include <time.h>
#include <limits.h>

Go to the source code of this file.

Classes

struct  icalvalue_kind_map

Functions

struct icalvalue_implicalvalue_new_impl (icalvalue_kind kind)
icalvalue * icalvalue_new_boolean (int v)
void icalvalue_set_boolean (icalvalue *value, int v)
int icalvalue_get_boolean (const icalvalue *value)
icalvalue * icalvalue_new_utcoffset (int v)
void icalvalue_set_utcoffset (icalvalue *value, int v)
int icalvalue_get_utcoffset (const icalvalue *value)
icalvalue * icalvalue_new_xlicclass (enum icalproperty_xlicclass v)
void icalvalue_set_xlicclass (icalvalue *value, enum icalproperty_xlicclass v)
enum icalproperty_xlicclass icalvalue_get_xlicclass (const icalvalue *value)
icalvalue * icalvalue_new_method (enum icalproperty_method v)
void icalvalue_set_method (icalvalue *value, enum icalproperty_method v)
enum icalproperty_method icalvalue_get_method (const icalvalue *value)
icalvalue * icalvalue_new_caladdress (const char *v)
void icalvalue_set_caladdress (icalvalue *value, const char *v)
const char * icalvalue_get_caladdress (const icalvalue *value)
icalvalue * icalvalue_new_period (struct icalperiodtype v)
void icalvalue_set_period (icalvalue *value, struct icalperiodtype v)
struct icalperiodtype icalvalue_get_period (const icalvalue *value)
icalvalue * icalvalue_new_status (enum icalproperty_status v)
void icalvalue_set_status (icalvalue *value, enum icalproperty_status v)
enum icalproperty_status icalvalue_get_status (const icalvalue *value)
icalvalue * icalvalue_new_binary (const char *v)
void icalvalue_set_binary (icalvalue *value, const char *v)
const char * icalvalue_get_binary (const icalvalue *value)
icalvalue * icalvalue_new_text (const char *v)
void icalvalue_set_text (icalvalue *value, const char *v)
const char * icalvalue_get_text (const icalvalue *value)
icalvalue * icalvalue_new_duration (struct icaldurationtype v)
void icalvalue_set_duration (icalvalue *value, struct icaldurationtype v)
struct icaldurationtype icalvalue_get_duration (const icalvalue *value)
icalvalue * icalvalue_new_integer (int v)
void icalvalue_set_integer (icalvalue *value, int v)
int icalvalue_get_integer (const icalvalue *value)
icalvalue * icalvalue_new_uri (const char *v)
void icalvalue_set_uri (icalvalue *value, const char *v)
const char * icalvalue_get_uri (const icalvalue *value)
icalvalue * icalvalue_new_class (enum icalproperty_class v)
void icalvalue_set_class (icalvalue *value, enum icalproperty_class v)
enum icalproperty_class icalvalue_get_class (const icalvalue *value)
icalvalue * icalvalue_new_float (float v)
void icalvalue_set_float (icalvalue *value, float v)
float icalvalue_get_float (const icalvalue *value)
icalvalue * icalvalue_new_query (const char *v)
void icalvalue_set_query (icalvalue *value, const char *v)
const char * icalvalue_get_query (const icalvalue *value)
icalvalue * icalvalue_new_string (const char *v)
void icalvalue_set_string (icalvalue *value, const char *v)
const char * icalvalue_get_string (const icalvalue *value)
icalvalue * icalvalue_new_transp (enum icalproperty_transp v)
void icalvalue_set_transp (icalvalue *value, enum icalproperty_transp v)
enum icalproperty_transp icalvalue_get_transp (const icalvalue *value)
icalvalue * icalvalue_new_datetime (struct icaltimetype v)
void icalvalue_set_datetime (icalvalue *value, struct icaltimetype v)
struct icaltimetype icalvalue_get_datetime (const icalvalue *value)
icalvalue * icalvalue_new_requeststatus (struct icalreqstattype v)
void icalvalue_set_requeststatus (icalvalue *value, struct icalreqstattype v)
struct icalreqstattype icalvalue_get_requeststatus (const icalvalue *value)
icalvalue * icalvalue_new_geo (struct icalgeotype v)
void icalvalue_set_geo (icalvalue *value, struct icalgeotype v)
struct icalgeotype icalvalue_get_geo (const icalvalue *value)
icalvalue * icalvalue_new_date (struct icaltimetype v)
void icalvalue_set_date (icalvalue *value, struct icaltimetype v)
struct icaltimetype icalvalue_get_date (const icalvalue *value)
icalvalue * icalvalue_new_action (enum icalproperty_action v)
void icalvalue_set_action (icalvalue *value, enum icalproperty_action v)
enum icalproperty_action icalvalue_get_action (const icalvalue *value)
int icalvalue_kind_is_valid (const icalvalue_kind kind)
 Check validity of a specific icalvalue_kind.
const char * icalvalue_kind_to_string (const icalvalue_kind kind)
icalvalue_kind icalvalue_string_to_kind (const char *str)
icalvalue * icalvalue_new_x (const char *v)
void icalvalue_set_x (icalvalue *impl, const char *v)
const char * icalvalue_get_x (const icalvalue *value)
icalvalue * icalvalue_new_recur (struct icalrecurrencetype v)
void icalvalue_set_recur (icalvalue *impl, struct icalrecurrencetype v)
struct icalrecurrencetype icalvalue_get_recur (const icalvalue *value)
icalvalue * icalvalue_new_trigger (struct icaltriggertype v)
void icalvalue_set_trigger (icalvalue *value, struct icaltriggertype v)
struct icaltriggertype icalvalue_get_trigger (const icalvalue *impl)
icalvalue * icalvalue_new_datetimeperiod (struct icaldatetimeperiodtype v)
void icalvalue_set_datetimeperiod (icalvalue *impl, struct icaldatetimeperiodtype v)
struct icaldatetimeperiodtype icalvalue_get_datetimeperiod (const icalvalue *impl)
icalvalue * icalvalue_new_attach (icalattach *attach)
void icalvalue_set_attach (icalvalue *value, icalattach *attach)
icalattach * icalvalue_get_attach (const icalvalue *value)

Variables

static struct icalvalue_kind_map [28]

Class Documentation

struct icalvalue_kind_map

Definition at line 54 of file icalderivedvalue.c.

Class Members
icalvalue_kind kind
char name

Function Documentation

enum icalproperty_action icalvalue_get_action ( const icalvalue *  value)

Definition at line 724 of file icalderivedvalue.c.

                                                                      {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_ACTION_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_enum;
}

Here is the caller graph for this function:

icalattach* icalvalue_get_attach ( const icalvalue *  value)

Definition at line 989 of file icalderivedvalue.c.

Here is the caller graph for this function:

const char* icalvalue_get_binary ( const icalvalue *  value)

Definition at line 314 of file icalderivedvalue.c.

                                                         {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_BINARY_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_string;
}

Here is the caller graph for this function:

int icalvalue_get_boolean ( const icalvalue *  value)

Definition at line 109 of file icalderivedvalue.c.

                                                  {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_BOOLEAN_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_int;
}

Here is the caller graph for this function:

const char* icalvalue_get_caladdress ( const icalvalue *  value)

Definition at line 225 of file icalderivedvalue.c.

                                                             {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_CALADDRESS_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_string;
}

Here is the caller graph for this function:

enum icalproperty_class icalvalue_get_class ( const icalvalue *  value)

Definition at line 465 of file icalderivedvalue.c.

                                                                    {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_CLASS_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_enum;
}

Here is the caller graph for this function:

struct icaltimetype icalvalue_get_date ( const icalvalue *  value) [read]

Definition at line 697 of file icalderivedvalue.c.

                                                               {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_DATE_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_time;
}

Here is the caller graph for this function:

struct icaltimetype icalvalue_get_datetime ( const icalvalue *  value) [read]

Definition at line 616 of file icalderivedvalue.c.

                                                                   {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_DATETIME_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_time;
}

Here is the caller graph for this function:

struct icaldatetimeperiodtype icalvalue_get_datetimeperiod ( const icalvalue *  impl) [read]

Definition at line 928 of file icalderivedvalue.c.

{
  struct icaldatetimeperiodtype dtp;
  
  icalerror_check_arg( (impl!=0),"value");
  icalerror_check_value_type(value, ICAL_DATETIMEPERIOD_VALUE);
  
  if(impl->kind == ICAL_DATETIME_VALUE){
      dtp.period = icalperiodtype_null_period();
      dtp.time = impl->data.v_time;
  } else if(impl->kind == ICAL_PERIOD_VALUE) {
      dtp.period = impl->data.v_period;
      dtp.time = icaltime_null_time();
  } else {
      dtp.period = icalperiodtype_null_period();
      dtp.time = icaltime_null_time();
      icalerror_set_errno(ICAL_BADARG_ERROR);
  }    

  return dtp;
}

Here is the call graph for this function:

Here is the caller graph for this function:

struct icaldurationtype icalvalue_get_duration ( const icalvalue *  value) [read]

Definition at line 376 of file icalderivedvalue.c.

                                                                       {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_DURATION_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_duration;
}

Here is the caller graph for this function:

float icalvalue_get_float ( const icalvalue *  value)

Definition at line 492 of file icalderivedvalue.c.

                                                  {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_FLOAT_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_float;
}

Here is the caller graph for this function:

struct icalgeotype icalvalue_get_geo ( const icalvalue *  value) [read]

Definition at line 670 of file icalderivedvalue.c.

                                                             {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_GEO_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_geo;
}

Here is the caller graph for this function:

int icalvalue_get_integer ( const icalvalue *  value)

Definition at line 403 of file icalderivedvalue.c.

                                                  {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_INTEGER_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_int;
}

Here is the caller graph for this function:

enum icalproperty_method icalvalue_get_method ( const icalvalue *  value)

Definition at line 190 of file icalderivedvalue.c.

                                                                      {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_METHOD_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_enum;
}

Here is the caller graph for this function:

struct icalperiodtype icalvalue_get_period ( const icalvalue *  value) [read]

Definition at line 252 of file icalderivedvalue.c.

                                                                   {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_PERIOD_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_period;
}

Here is the caller graph for this function:

const char* icalvalue_get_query ( const icalvalue *  value)

Definition at line 527 of file icalderivedvalue.c.

                                                        {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_QUERY_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_string;
}

Here is the caller graph for this function:

struct icalrecurrencetype icalvalue_get_recur ( const icalvalue *  value) [read]

Definition at line 831 of file icalderivedvalue.c.

{
    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_RECUR_VALUE);
  
    return *(value->data.v_recur);
}

Here is the caller graph for this function:

struct icalreqstattype icalvalue_get_requeststatus ( const icalvalue *  value) [read]

Definition at line 643 of file icalderivedvalue.c.

                                                                           {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_REQUESTSTATUS_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_requeststatus;
}

Here is the caller graph for this function:

enum icalproperty_status icalvalue_get_status ( const icalvalue *  value)

Definition at line 279 of file icalderivedvalue.c.

                                                                      {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_STATUS_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_enum;
}

Here is the caller graph for this function:

const char* icalvalue_get_string ( const icalvalue *  value)

Definition at line 562 of file icalderivedvalue.c.

                                                         {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_STRING_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_string;
}

Here is the caller graph for this function:

const char* icalvalue_get_text ( const icalvalue *  value)

Definition at line 349 of file icalderivedvalue.c.

                                                       {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_TEXT_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_string;
}

Here is the caller graph for this function:

enum icalproperty_transp icalvalue_get_transp ( const icalvalue *  value)

Definition at line 589 of file icalderivedvalue.c.

                                                                      {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_TRANSP_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_enum;
}

Here is the caller graph for this function:

struct icaltriggertype icalvalue_get_trigger ( const icalvalue *  impl) [read]

Definition at line 867 of file icalderivedvalue.c.

{
    struct icaltriggertype tr;

    icalerror_check_arg( (impl!=0),"value");
    icalerror_check_arg( (impl!=0),"value");

    if(impl->kind == ICAL_DATETIME_VALUE){
        tr.duration = icaldurationtype_from_int(0);
        tr.time = impl->data.v_time;
    } else if(impl->kind == ICAL_DURATION_VALUE){
       tr.time = icaltime_null_time();
       tr.duration = impl->data.v_duration;
    } else {
       tr.duration = icaldurationtype_from_int(0);
       tr.time = icaltime_null_time();
       icalerror_set_errno(ICAL_BADARG_ERROR);
    }

    return tr;
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* icalvalue_get_uri ( const icalvalue *  value)

Definition at line 438 of file icalderivedvalue.c.

                                                      {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_URI_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_string;
}

Here is the caller graph for this function:

int icalvalue_get_utcoffset ( const icalvalue *  value)

Definition at line 136 of file icalderivedvalue.c.

Here is the caller graph for this function:

const char* icalvalue_get_x ( const icalvalue *  value)

Definition at line 790 of file icalderivedvalue.c.

Here is the caller graph for this function:

Definition at line 163 of file icalderivedvalue.c.

                                                                            {

    icalerror_check_arg( (value!=0),"value");
    icalerror_check_value_type(value, ICAL_XLICCLASS_VALUE);
    return ((struct icalvalue_impl*)value)->data.v_enum;
}

Here is the caller graph for this function:

Check validity of a specific icalvalue_kind.

Definition at line 732 of file icalderivedvalue.c.

{
    int i = 0;
    do {
      if (value_map[i].kind == kind)
       return 1;
    } while (value_map[i++].kind != ICAL_NO_VALUE);

    return 0;
}  

Here is the caller graph for this function:

Definition at line 743 of file icalderivedvalue.c.

{
    int i;

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

    return 0;
}

Here is the caller graph for this function:

icalvalue* icalvalue_new_action ( enum icalproperty_action  v)

Definition at line 706 of file icalderivedvalue.c.

                                                            {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_ACTION_VALUE);
   
   icalvalue_set_action((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_attach ( icalattach *  attach)

Definition at line 953 of file icalderivedvalue.c.

{
    struct icalvalue_impl *impl;

    icalerror_check_arg_rz ((attach != NULL), "attach");

    impl = icalvalue_new_impl (ICAL_ATTACH_VALUE);
    if (!impl) {
       errno = ENOMEM;
       return NULL;
    }

    icalvalue_set_attach ((icalvalue *) impl, attach);
    return (icalvalue *) impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_binary ( const char *  v)

Definition at line 288 of file icalderivedvalue.c.

                                               {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_BINARY_VALUE);
   icalerror_check_arg_rz( (v!=0),"v");

   icalvalue_set_binary((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

icalvalue* icalvalue_new_boolean ( int  v)

Definition at line 91 of file icalderivedvalue.c.

                                        {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_BOOLEAN_VALUE);
   
   icalvalue_set_boolean((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_caladdress ( const char *  v)

Definition at line 199 of file icalderivedvalue.c.

                                                   {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_CALADDRESS_VALUE);
   icalerror_check_arg_rz( (v!=0),"v");

   icalvalue_set_caladdress((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_class ( enum icalproperty_class  v)

Definition at line 447 of file icalderivedvalue.c.

                                                          {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_CLASS_VALUE);
   
   icalvalue_set_class((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_date ( struct icaltimetype  v)

Definition at line 679 of file icalderivedvalue.c.

                                                     {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_DATE_VALUE);
   
   icalvalue_set_date((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_datetime ( struct icaltimetype  v)

Definition at line 598 of file icalderivedvalue.c.

                                                         {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_DATETIME_VALUE);
   
   icalvalue_set_datetime((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 892 of file icalderivedvalue.c.

{
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_DATETIMEPERIOD_VALUE);

   icalvalue_set_datetimeperiod(impl,v);

   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_duration ( struct icaldurationtype  v)

Definition at line 358 of file icalderivedvalue.c.

                                                             {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_DURATION_VALUE);
   
   icalvalue_set_duration((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_float ( float  v)

Definition at line 474 of file icalderivedvalue.c.

                                        {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_FLOAT_VALUE);
   
   icalvalue_set_float((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_geo ( struct icalgeotype  v)

Definition at line 652 of file icalderivedvalue.c.

                                                   {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_GEO_VALUE);
   
   icalvalue_set_geo((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 66 of file icalvalue.c.

                                                               {

    struct icalvalue_impl* v;

    if (!icalvalue_kind_is_valid(kind))
      return NULL;

    if ( ( v = (struct icalvalue_impl*)
          malloc(sizeof(struct icalvalue_impl))) == 0) {
       icalerror_set_errno(ICAL_NEWFAILED_ERROR);
       return 0;
    }
    
    strcpy(v->id,"val");
    
    v->kind = kind;
    v->size = 0;
    v->parent = 0;
    v->x_value = 0;
    memset(&(v->data),0,sizeof(v->data));
    
    return v;

}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_integer ( int  v)

Definition at line 385 of file icalderivedvalue.c.

                                        {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_INTEGER_VALUE);
   
   icalvalue_set_integer((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_method ( enum icalproperty_method  v)

Definition at line 172 of file icalderivedvalue.c.

                                                            {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_METHOD_VALUE);
   
   icalvalue_set_method((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_period ( struct icalperiodtype  v)

Definition at line 234 of file icalderivedvalue.c.

                                                         {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_PERIOD_VALUE);
   
   icalvalue_set_period((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_query ( const char *  v)

Definition at line 501 of file icalderivedvalue.c.

                                              {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_QUERY_VALUE);
   icalerror_check_arg_rz( (v!=0),"v");

   icalvalue_set_query((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_recur ( struct icalrecurrencetype  v)

Definition at line 799 of file icalderivedvalue.c.

{
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_RECUR_VALUE);
    
   icalvalue_set_recur((icalvalue*)impl,v);

   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_requeststatus ( struct icalreqstattype  v)

Definition at line 625 of file icalderivedvalue.c.

                                                                 {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_REQUESTSTATUS_VALUE);
   
   icalvalue_set_requeststatus((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_status ( enum icalproperty_status  v)

Definition at line 261 of file icalderivedvalue.c.

                                                            {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_STATUS_VALUE);
   
   icalvalue_set_status((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_string ( const char *  v)

Definition at line 536 of file icalderivedvalue.c.

                                               {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_STRING_VALUE);
   icalerror_check_arg_rz( (v!=0),"v");

   icalvalue_set_string((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_text ( const char *  v)

Definition at line 323 of file icalderivedvalue.c.

                                             {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_TEXT_VALUE);
   icalerror_check_arg_rz( (v!=0),"v");

   icalvalue_set_text((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_transp ( enum icalproperty_transp  v)

Definition at line 571 of file icalderivedvalue.c.

                                                            {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_TRANSP_VALUE);
   
   icalvalue_set_transp((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_trigger ( struct icaltriggertype  v)

Definition at line 843 of file icalderivedvalue.c.

{
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_TRIGGER_VALUE);
 
   icalvalue_set_trigger((icalvalue*)impl,v);

   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_uri ( const char *  v)

Definition at line 412 of file icalderivedvalue.c.

                                            {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_URI_VALUE);
   icalerror_check_arg_rz( (v!=0),"v");

   icalvalue_set_uri((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_utcoffset ( int  v)

Definition at line 118 of file icalderivedvalue.c.

                                          {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_UTCOFFSET_VALUE);
   
   icalvalue_set_utcoffset((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

icalvalue* icalvalue_new_x ( const char *  v)

Definition at line 770 of file icalderivedvalue.c.

                                          {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_X_VALUE);
   icalerror_check_arg_rz( (v!=0),"v");

   icalvalue_set_x((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 145 of file icalderivedvalue.c.

                                                                  {
   struct icalvalue_impl* impl = icalvalue_new_impl(ICAL_XLICCLASS_VALUE);
   
   icalvalue_set_xlicclass((icalvalue*)impl,v);
   return (icalvalue*)impl;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_action ( icalvalue *  value,
enum icalproperty_action  v 
)

Definition at line 712 of file icalderivedvalue.c.

                                                                        {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    
    icalerror_check_value_type(value, ICAL_ACTION_VALUE);
    impl = (struct icalvalue_impl*)value;


    impl->data.v_enum = v; 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_attach ( icalvalue *  value,
icalattach *  attach 
)

Definition at line 970 of file icalderivedvalue.c.

{
    struct icalvalue_impl *impl;
 
    icalerror_check_arg_rv ((value != NULL), "value");
    icalerror_check_value_type (value, ICAL_ATTACH_VALUE);
    icalerror_check_arg_rv ((attach != NULL), "attach");
  
    impl = (struct icalvalue_impl *) value;
 
    icalattach_ref (attach);

    if (impl->data.v_attach)
       icalattach_unref (impl->data.v_attach);
  
    impl->data.v_attach = attach;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_binary ( icalvalue *  value,
const char *  v 
)

Definition at line 295 of file icalderivedvalue.c.

                                                           {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    icalerror_check_arg_rv( (v!=0),"v");

    icalerror_check_value_type(value, ICAL_BINARY_VALUE);
    impl = (struct icalvalue_impl*)value;
    if(impl->data.v_string!=0) {free((void*)impl->data.v_string);}


    impl->data.v_string = icalmemory_strdup(v);

    if (impl->data.v_string == 0){
      errno = ENOMEM;
    }
 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_boolean ( icalvalue *  value,
int  v 
)

Definition at line 97 of file icalderivedvalue.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_caladdress ( icalvalue *  value,
const char *  v 
)

Definition at line 206 of file icalderivedvalue.c.

                                                               {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    icalerror_check_arg_rv( (v!=0),"v");

    icalerror_check_value_type(value, ICAL_CALADDRESS_VALUE);
    impl = (struct icalvalue_impl*)value;
    if(impl->data.v_string!=0) {free((void*)impl->data.v_string);}


    impl->data.v_string = icalmemory_strdup(v);

    if (impl->data.v_string == 0){
      errno = ENOMEM;
    }
 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_class ( icalvalue *  value,
enum icalproperty_class  v 
)

Definition at line 453 of file icalderivedvalue.c.

                                                                      {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    
    icalerror_check_value_type(value, ICAL_CLASS_VALUE);
    impl = (struct icalvalue_impl*)value;


    impl->data.v_enum = v; 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_date ( icalvalue *  value,
struct icaltimetype  v 
)

Definition at line 685 of file icalderivedvalue.c.

                                                                 {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    
    icalerror_check_value_type(value, ICAL_DATE_VALUE);
    impl = (struct icalvalue_impl*)value;


    impl->data.v_time = v; 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_datetime ( icalvalue *  value,
struct icaltimetype  v 
)

Definition at line 604 of file icalderivedvalue.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_datetimeperiod ( icalvalue *  impl,
struct icaldatetimeperiodtype  v 
)

Definition at line 902 of file icalderivedvalue.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_duration ( icalvalue *  value,
struct icaldurationtype  v 
)

Definition at line 364 of file icalderivedvalue.c.

                                                                         {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    
    icalerror_check_value_type(value, ICAL_DURATION_VALUE);
    impl = (struct icalvalue_impl*)value;


    impl->data.v_duration = v; 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_float ( icalvalue *  value,
float  v 
)

Definition at line 480 of file icalderivedvalue.c.

                                                    {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    
    icalerror_check_value_type(value, ICAL_FLOAT_VALUE);
    impl = (struct icalvalue_impl*)value;


    impl->data.v_float = v; 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_geo ( icalvalue *  value,
struct icalgeotype  v 
)

Definition at line 658 of file icalderivedvalue.c.

                                                               {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    
    icalerror_check_value_type(value, ICAL_GEO_VALUE);
    impl = (struct icalvalue_impl*)value;


    impl->data.v_geo = v; 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_integer ( icalvalue *  value,
int  v 
)

Definition at line 391 of file icalderivedvalue.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_method ( icalvalue *  value,
enum icalproperty_method  v 
)

Definition at line 178 of file icalderivedvalue.c.

                                                                        {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    
    icalerror_check_value_type(value, ICAL_METHOD_VALUE);
    impl = (struct icalvalue_impl*)value;


    impl->data.v_enum = v; 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_period ( icalvalue *  value,
struct icalperiodtype  v 
)

Definition at line 240 of file icalderivedvalue.c.

                                                                     {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    
    icalerror_check_value_type(value, ICAL_PERIOD_VALUE);
    impl = (struct icalvalue_impl*)value;


    impl->data.v_period = v; 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_query ( icalvalue *  value,
const char *  v 
)

Definition at line 508 of file icalderivedvalue.c.

                                                          {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    icalerror_check_arg_rv( (v!=0),"v");

    icalerror_check_value_type(value, ICAL_QUERY_VALUE);
    impl = (struct icalvalue_impl*)value;
    if(impl->data.v_string!=0) {free((void*)impl->data.v_string);}


    impl->data.v_string = icalmemory_strdup(v);

    if (impl->data.v_string == 0){
      errno = ENOMEM;
    }
 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_recur ( icalvalue *  impl,
struct icalrecurrencetype  v 
)

Definition at line 809 of file icalderivedvalue.c.

{
    icalerror_check_arg_rv( (impl!=0),"value");
    icalerror_check_value_type(value, ICAL_RECUR_VALUE);

    if (impl->data.v_recur != 0){
       free(impl->data.v_recur);
       impl->data.v_recur = 0;
    }

    impl->data.v_recur = malloc(sizeof(struct icalrecurrencetype));

    if (impl->data.v_recur == 0){
       icalerror_set_errno(ICAL_NEWFAILED_ERROR);
       return;
    } else {
       memcpy(impl->data.v_recur, &v, sizeof(struct icalrecurrencetype));
    }
              
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_requeststatus ( icalvalue *  value,
struct icalreqstattype  v 
)

Definition at line 631 of file icalderivedvalue.c.

                                                                             {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    
    icalerror_check_value_type(value, ICAL_REQUESTSTATUS_VALUE);
    impl = (struct icalvalue_impl*)value;


    impl->data.v_requeststatus = v; 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_status ( icalvalue *  value,
enum icalproperty_status  v 
)

Definition at line 267 of file icalderivedvalue.c.

                                                                        {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    
    icalerror_check_value_type(value, ICAL_STATUS_VALUE);
    impl = (struct icalvalue_impl*)value;


    impl->data.v_enum = v; 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_string ( icalvalue *  value,
const char *  v 
)

Definition at line 543 of file icalderivedvalue.c.

                                                           {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    icalerror_check_arg_rv( (v!=0),"v");

    icalerror_check_value_type(value, ICAL_STRING_VALUE);
    impl = (struct icalvalue_impl*)value;
    if(impl->data.v_string!=0) {free((void*)impl->data.v_string);}


    impl->data.v_string = icalmemory_strdup(v);

    if (impl->data.v_string == 0){
      errno = ENOMEM;
    }
 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_text ( icalvalue *  value,
const char *  v 
)

Definition at line 330 of file icalderivedvalue.c.

                                                         {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    icalerror_check_arg_rv( (v!=0),"v");

    icalerror_check_value_type(value, ICAL_TEXT_VALUE);
    impl = (struct icalvalue_impl*)value;
    if(impl->data.v_string!=0) {free((void*)impl->data.v_string);}


    impl->data.v_string = icalmemory_strdup(v);

    if (impl->data.v_string == 0){
      errno = ENOMEM;
    }
 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_transp ( icalvalue *  value,
enum icalproperty_transp  v 
)

Definition at line 577 of file icalderivedvalue.c.

                                                                        {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    
    icalerror_check_value_type(value, ICAL_TRANSP_VALUE);
    impl = (struct icalvalue_impl*)value;


    impl->data.v_enum = v; 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_trigger ( icalvalue *  value,
struct icaltriggertype  v 
)

Definition at line 853 of file icalderivedvalue.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_uri ( icalvalue *  value,
const char *  v 
)

Definition at line 419 of file icalderivedvalue.c.

                                                        {
    struct icalvalue_impl* impl; 
    icalerror_check_arg_rv( (value!=0),"value");
    icalerror_check_arg_rv( (v!=0),"v");

    icalerror_check_value_type(value, ICAL_URI_VALUE);
    impl = (struct icalvalue_impl*)value;
    if(impl->data.v_string!=0) {free((void*)impl->data.v_string);}


    impl->data.v_string = icalmemory_strdup(v);

    if (impl->data.v_string == 0){
      errno = ENOMEM;
    }
 

    icalvalue_reset_kind(impl);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_utcoffset ( icalvalue *  value,
int  v 
)

Definition at line 124 of file icalderivedvalue.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_x ( icalvalue *  impl,
const char *  v 
)

Definition at line 777 of file icalderivedvalue.c.

                                                     {
    icalerror_check_arg_rv( (impl!=0),"value");
    icalerror_check_arg_rv( (v!=0),"v");

    if(impl->x_value!=0) {free((void*)impl->x_value);}

    impl->x_value = icalmemory_strdup(v);

    if (impl->x_value == 0){
      errno = ENOMEM;
    }
 
 }

Here is the call graph for this function:

Here is the caller graph for this function:

void icalvalue_set_xlicclass ( icalvalue *  value,
enum icalproperty_xlicclass  v 
)

Definition at line 151 of file icalderivedvalue.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 756 of file icalderivedvalue.c.

{
    int i;

    for (i=0; value_map[i].kind != ICAL_NO_VALUE; i++) {
       if (strcmp(value_map[i].name,str) == 0) {
           return value_map[i].kind;
       }
    }

    return  value_map[i].kind;

}

Here is the caller graph for this function:


Variable Documentation

struct icalvalue_kind_map[28] [static]
Initial value:
{
    {ICAL_BOOLEAN_VALUE,"BOOLEAN"},
    {ICAL_UTCOFFSET_VALUE,"UTC-OFFSET"},
    {ICAL_XLICCLASS_VALUE,"X-LIC-CLASS"},
    {ICAL_RECUR_VALUE,"RECUR"},
    {ICAL_METHOD_VALUE,"METHOD"},
    {ICAL_CALADDRESS_VALUE,"CAL-ADDRESS"},
    {ICAL_PERIOD_VALUE,"PERIOD"},
    {ICAL_STATUS_VALUE,"STATUS"},
    {ICAL_BINARY_VALUE,"BINARY"},
    {ICAL_TEXT_VALUE,"TEXT"},
    {ICAL_DURATION_VALUE,"DURATION"},
    {ICAL_DATETIMEPERIOD_VALUE,"DATE-TIME-PERIOD"},
    {ICAL_INTEGER_VALUE,"INTEGER"},
    {ICAL_URI_VALUE,"URI"},
    {ICAL_TRIGGER_VALUE,"TRIGGER"},
    {ICAL_ATTACH_VALUE,"ATTACH"},
    {ICAL_CLASS_VALUE,"CLASS"},
    {ICAL_FLOAT_VALUE,"FLOAT"},
    {ICAL_QUERY_VALUE,"QUERY"},
    {ICAL_STRING_VALUE,"STRING"},
    {ICAL_TRANSP_VALUE,"TRANSP"},
    {ICAL_X_VALUE,"X"},
    {ICAL_DATETIME_VALUE,"DATE-TIME"},
    {ICAL_REQUESTSTATUS_VALUE,"REQUEST-STATUS"},
    {ICAL_GEO_VALUE,"GEO"},
    {ICAL_DATE_VALUE,"DATE"},
    {ICAL_ACTION_VALUE,"ACTION"},
    {ICAL_NO_VALUE,""}
}

Definition at line 59 of file icalderivedvalue.c.