clif_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef CLIF_INTERNAL_H
20 #define CLIF_INTERNAL_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #define _P_SIZE(p) (sizeof(p) - 1)
27 
31 #define LF_PATH_BEGIN_C '<'
32 
36 #define LF_PATH_END_C '>'
37 
41 #define LF_LINK_SEPARATOR_C ','
42 
47 #define LF_ATTR_SEPARATOR_C ';'
48 
52 #define LF_ATTR_VAL_SEPARATOR_C '='
53 
58 #define LF_ATTR_ANCHOR "anchor"
59 #define LF_ATTR_ANCHOR_S _P_SIZE(LF_ATTR_ANCHOR)
66 #define LF_ATTR_REL_TYPE "rel"
67 #define LF_ATTR_REL_TYPE_S _P_SIZE(LF_ATTR_REL_TYPE)
74 #define LF_ATTR_LANG "hreflang"
75 #define LF_ATTR_LANG_S _P_SIZE(LF_ATTR_LANG)
82 #define LF_ATTR_MEDIA "media"
83 #define LF_ATTR_MEDIA_S _P_SIZE(LF_ATTR_MEDIA)
90 #define LF_ATTR_TITLE "title"
91 #define LF_ATTR_TITLE_S _P_SIZE(LF_ATTR_TITLE)
98 #define LF_ATTR_TITLE_EXT "title*"
99 #define LF_ATTR_TITLE_EXT_S _P_SIZE(LF_ATTR_TITLE_EXT)
106 #define LF_ATTR_TYPE "type"
107 #define LF_ATTR_TYPE_S _P_SIZE(LF_ATTR_TYPE)
114 #define LF_ATTR_RES_TYPE "rt"
115 #define LF_ATTR_RES_TYPE_S _P_SIZE(LF_ATTR_RES_TYPE)
122 #define LF_ATTR_IF_DESC "if"
123 #define LF_ATTR_IF_DESC_S _P_SIZE(LF_ATTR_IF_DESC)
130 #define LF_ATTR_SIZE "sz"
131 #define LF_ATTR_SIZE_S _P_SIZE(LF_ATTR_SIZE)
138 #define LF_ATTR_CT "ct"
139 #define LF_ATTR_CT_S _P_SIZE(LF_ATTR_CT)
146 #define LF_ATTR_OBS "obs"
147 #define LF_ATTR_OBS_S _P_SIZE(LF_ATTR_OBS)
150 #ifdef __cplusplus
151 }
152 #endif
153 
154 #endif /* CLIF_INTERNAL_H */
155