Back to index

lightning-sunbird  0.9+nobinonly
icalattachimpl.h
Go to the documentation of this file.
00001 /* -*- Mode: C -*- */
00002 /*======================================================================
00003   FILE: icalattachimpl.h
00004   CREATOR: acampi 28 May 02
00005   
00006   $Id: icalattachimpl.h,v 1.1 2002/05/28 14:08:00 acampi Exp $
00007 
00008 
00009  (C) COPYRIGHT 2000, Andrea Campi
00010 
00011  This program is free software; you can redistribute it and/or modify
00012  it under the terms of either: 
00013 
00014     The LGPL as published by the Free Software Foundation, version
00015     2.1, available at: http://www.fsf.org/copyleft/lesser.html
00016 
00017   Or:
00018 
00019     The Mozilla Public License Version 1.0. You may obtain a copy of
00020     the License at http://www.mozilla.org/MPL/
00021 
00022   The original code is icalattachimpl.h
00023 
00024 
00025 ======================================================================*/
00026 
00027 #ifdef HAVE_CONFIG_H
00028 #include <config.h>
00029 #endif
00030 
00031 #ifndef ICALATTACHIMPL_H
00032 #define ICALATTACHIMPL_H
00033 
00034 #include "icalattach.h"
00035 
00036 /* Private structure for ATTACH values */
00037 struct icalattach_impl {
00038        /* Reference count */
00039        int refcount;
00040 
00041        union {
00042               /* URL attachment data */
00043               struct {
00044                      char *url;
00045               } url;
00046 
00047               /* Inline data */
00048               struct {
00049                      unsigned char *data;
00050                      icalattach_free_fn_t free_fn;
00051                      void *free_fn_data;
00052               } data;
00053        } u;
00054 
00055        /* TRUE if URL, FALSE if inline data */
00056        unsigned int is_url : 1;
00057 };
00058 
00059 #endif