DS3 C SDK
5.0.0
Provides access to the Spectra S3 API with C
ds3_c_sdk
src
ds3_string_multimap_impl.c
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
#include <glib.h>
17
#include "
ds3_string_multimap.h
"
18
#include "
ds3_string_multimap_impl.h
"
19
20
GHashTable*
ds3_string_multimap_get_hashtable
(
const
ds3_string_multimap
* mp) {
21
const
struct
_ds3_string_multimap
* _mp = mp;
22
return
_mp->
hash
;
23
}
24
25
void
ds3_string_multimap_set_hashtable
(
ds3_string_multimap
* mp, GHashTable* ht) {
26
if
(mp != NULL) {
27
ds3_string_multimap_free
(mp);
28
}
29
30
struct
_ds3_string_multimap
* _mp = mp;
31
_mp->
hash
= ht;
32
}
33
_ds3_string_multimap::hash
GHashTable * hash
Definition:
ds3_string_multimap_impl.h:27
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_set_hashtable
void ds3_string_multimap_set_hashtable(ds3_string_multimap *mp, GHashTable *ht)
Definition:
ds3_string_multimap_impl.c:25
ds3_string_multimap.h
_ds3_string_multimap
Definition:
ds3_string_multimap_impl.h:26
ds3_string_multimap_free
void ds3_string_multimap_free(ds3_string_multimap *map)
Definition:
ds3_string_multimap.c:102
ds3_string_multimap_impl.h
Generated by
1.8.15