File: common_handlers.h

package info (click to toggle)
librra 0.14-1.2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,156 kB
  • sloc: ansic: 12,769; sh: 10,454; makefile: 181
file content (37 lines) | stat: -rw-r--r-- 1,624 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* $Id: common_handlers.h 3713 2009-03-17 14:32:11Z mark_ellis $ */
#ifndef __common_handlers_h__
#define __common_handlers_h__

#include <inttypes.h>
#include <stdbool.h>
#include <libmimedir.h>

struct _CEPROPVAL;
struct _Generator;
struct _Parser;

bool on_propval_categories (struct _Generator* g, struct _CEPROPVAL* propval, void* cookie);
bool on_propval_location   (struct _Generator* g, struct _CEPROPVAL* propval, void* cookie);
bool on_propval_sensitivity(struct _Generator* g, struct _CEPROPVAL* propval, void* cookie);
bool on_propval_subject    (struct _Generator* g, struct _CEPROPVAL* propval, void* cookie);

bool on_mdir_line_categories (struct _Parser* p, mdir_line* line, void* cookie);
bool on_mdir_line_class      (struct _Parser* p, mdir_line* line, void* cookie);
bool on_mdir_line_location   (struct _Parser* p, mdir_line* line, void* cookie);
bool on_mdir_line_summary    (struct _Parser* p, mdir_line* line, void* cookie);

bool process_propval_notes   (struct _Generator* g, struct _CEPROPVAL* propval, void* cookie, const char *codepage);
bool process_mdir_line_description(struct _Parser* p, mdir_line* line, void* cookie, const char *codepage);

#define REMINDER_RELATED_START 0
#define REMINDER_RELATED_END   1

void to_propval_trigger(struct _Parser* parser, mdir_line* line, uint8_t related_support);

void to_icalendar_trigger(struct _Generator* generator, struct _CEPROPVAL* reminder_enabled, struct _CEPROPVAL* reminder_minutes, uint8_t related);

char* convert_to_utf8(const char* inbuf, const char* codepage);
char* convert_from_utf8(const char* source, const char* codepage);

#endif