Add support for query key extraction
[com/gs-lite.git] / include / vstring.h
1 /* ------------------------------------------------
2 Copyright 2014 AT&T Intellectual Property
3    Licensed under the Apache License, Version 2.0 (the "License");
4    you may not use this file except in compliance with the License.
5    You may obtain a copy of the License at
6
7      http://www.apache.org/licenses/LICENSE-2.0
8
9    Unless required by applicable law or agreed to in writing, software
10    distributed under the License is distributed on an "AS IS" BASIS,
11    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12    See the License for the specific language governing permissions and
13    limitations under the License.
14  ------------------------------------------- */
15
16 /*
17  * vstring.h: definition of vstring struct for use in applications and hfta
18  */
19 #ifndef VSTRING_H
20 #define VSTRING_H
21
22 #include "gsconfig.h"
23 #include "gstypes.h"
24
25 /* vstring32 has to match string32 definition in rts_string.h however, the data
26    types differ */
27
28 struct vstring32 {
29     gs_uint32_t length;
30     gs_uint32_t offset;
31     gs_uint32_t reserved;
32 };
33
34 //      vstring is the unpacked version of a string,
35 //      vstring32 is its repreentation in a gs record.
36 //      This complication is necessary to support
37 //      old gsdat files.
38
39
40 struct vstring {
41     gs_uint32_t length;
42     gs_p_t offset;
43     gs_uint32_t reserved;
44 };
45
46 struct hfta_ipv6_str{
47         gs_uint32_t v[4];
48 };
49
50
51 #endif