DS3 C SDK
5.0.0
Provides access to the Spectra S3 API with C
ds3_c_sdk
src
ds3_string_multimap_impl.h
Go to the documentation of this file.
1
/*
2
* ******************************************************************************
3
* Copyright 2014-2017 Spectra Logic Corporation. All Rights Reserved.
4
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
5
* this file except in compliance with the License. A copy of the License is located at
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* or in the "license" file accompanying this file.
10
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
12
* specific language governing permissions and limitations under the License.
13
* ****************************************************************************
14
*/
15
16
17
#ifndef __DS3_STRING_MULTIMAP_IMPL__
18
#define __DS3_STRING_MULTIMAP_IMPL__
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
24
#include <glib.h>
25
26
struct
_ds3_string_multimap
{
27
GHashTable*
hash
;
//key is ds3_str, values are a GPtrArray of ds3_str
28
};
29
30
typedef
struct
_ds3_string_multimap_entry
{
31
ds3_str
*
key
;
32
GPtrArray*
values
;
// A ds3_str list of the header values
33
}
ds3_string_multimap_entry
;
34
35
GHashTable*
ds3_string_multimap_get_hashtable
(
const
ds3_string_multimap
* mp);
36
37
void
ds3_string_multimap_set_hashtable
(
ds3_string_multimap
* mp, GHashTable* ht);
38
39
#ifdef __cplusplus
40
}
41
#endif
42
#endif
43
ds3_string_multimap_get_hashtable
GHashTable * ds3_string_multimap_get_hashtable(const ds3_string_multimap *mp)
Definition:
ds3_string_multimap_impl.c:20
_ds3_string_multimap_entry::key
ds3_str * key
Definition:
ds3_string_multimap_impl.h:31
_ds3_string_multimap::hash
GHashTable * hash
Definition:
ds3_string_multimap_impl.h:27
_ds3_string_multimap_entry::values
GPtrArray * values
Definition:
ds3_string_multimap_impl.h:32
ds3_string_multimap_set_hashtable
void ds3_string_multimap_set_hashtable(ds3_string_multimap *mp, GHashTable *ht)
Definition:
ds3_string_multimap_impl.c:25
_ds3_string_multimap
Definition:
ds3_string_multimap_impl.h:26
_ds3_string_multimap_entry
Definition:
ds3_string_multimap_impl.h:30
ds3_str
Definition:
ds3_string.h:26
ds3_string_multimap_entry
struct _ds3_string_multimap_entry ds3_string_multimap_entry
Generated by
1.8.15