source: trunk/src/core/RpEncode.h @ 1030

Last change on this file since 1030 was 1030, checked in by gah, 16 years ago

core cleanup

File size: 1.1 KB
Line 
1/*
2 * ======================================================================
3 *  Rappture::encoding
4 *
5 *  AUTHOR:  Derrick Kearney, Purdue University
6 *
7 *  Copyright (c) 2004-2007  Purdue Research Foundation
8 * ----------------------------------------------------------------------
9 *  See the file "license.terms" for information on usage and
10 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
11 * ======================================================================
12 */
13
14#ifndef RAPPTURE_ENCODE_H
15#define RAPPTURE_ENCODE_H
16
17#include <RpBuffer.h>
18#include <RpOutcome.h>
19
20#define RPENC_Z      1
21#define RPENC_B64    2
22#define RPENC_HDR    4
23
24#ifdef __cplusplus
25extern "C" {
26namespace Rappture {
27    namespace encoding {
28#endif // ifdef __cplusplus
29
30int isbinary(const char* buf, int size);
31Rappture::Outcome encode (Rappture::Buffer& buf, int flags);
32Rappture::Outcome decode (Rappture::Buffer& buf, int flags);
33
34#ifdef __cplusplus
35    } // namespace encoding
36} // namespace Rappture
37} // extern C
38#endif // ifdef __cplusplus
39
40#endif // RAPPTURE_ENCODE_H
Note: See TracBrowser for help on using the repository browser.