Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
src
modules
rlm_cache
serialize.h
Go to the documentation of this file.
1
/*
2
* This program is is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 2 of the License, or (at
5
* your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
15
*/
16
17
/*
18
* $Id: 3b629d880e6b1332da431f0a3b5024b4bea568a9 $
19
* @file serialize.h
20
* @brief Serialize and deserialise cache entries.
21
*
22
* @author Arran Cudbard-Bell
23
* @copyright 2014 Arran Cudbard-Bell <a.cudbardb@freeradius.org>
24
* @copyright 2014 The FreeRADIUS server project
25
*/
26
RCSIDH
(serialize_h,
"$Id: 3b629d880e6b1332da431f0a3b5024b4bea568a9 $"
)
27
28
int
cache_serialize
(TALLOC_CTX *ctx,
char
**out,
rlm_cache_entry_t
const *c);
29
int
cache_deserialize
(
rlm_cache_entry_t
*c,
char
*in, ssize_t inlen);
rlm_cache_entry_t
Definition:
rlm_cache.h:76
RCSIDH
#define RCSIDH(h, id)
Definition:
build.h:136
cache_serialize
int cache_serialize(TALLOC_CTX *ctx, char **out, rlm_cache_entry_t const *c)
Serialize a cache entry as a humanly readable string.
Definition:
serialize.c:41
cache_deserialize
int cache_deserialize(rlm_cache_entry_t *c, char *in, ssize_t inlen)
Converts a serialized cache entry back into a structure.
Definition:
serialize.c:103
Generated on Sun Aug 28 2016 14:19:46 by
1.8.6