Back to index

opendkim  2.6.4
ut.h
Go to the documentation of this file.
00001 /*
00002 **  Copyright (c) 2011, The OpenDKIM Project.  All rights reserved.
00003 */
00004 
00005 #ifndef lint
00006 static char ut_h_id[] = "$Id$";
00007 #endif /* ! lint */
00008 
00009 #ifndef _UT_H_
00010 #define _UT_H_
00011 
00012 /* system includes */
00013 #include <sys/param.h>
00014 #include <sys/types.h>
00015 
00016 /* types */
00017 struct uri_template;
00018 typedef struct uri_template * URITEMP;
00019 
00020 #define       UT_KEYTYPE_STRING    1
00021 #define       UT_KEYTYPE_LIST             2
00022 #define       UT_KEYTYPE_KEYVALUE  3
00023 
00024 #define       UT_ERROR_OK          0
00025 #define       UT_ERROR_MALFORMED   (-1)
00026 
00027 /* prototypes */
00028 extern URITEMP ut_init(void);
00029 extern void ut_destroy(URITEMP);
00030 extern int ut_keyvalue(URITEMP, int, const char *, void *);
00031 extern size_t ut_generate(URITEMP, const char *, char *, size_t);
00032 
00033 #endif /* ! _UT_H_ */