source: trunk/src2/core/RpEncode.h @ 751

Last change on this file since 751 was 751, checked in by dkearney, 17 years ago

moved encode code to src2/core so it can be used in librappture2 for nanovis
updated nanovis configure script
updated src and src2/core makefiles with encode code move

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 "rappture.h"
18#include "RpBuffer.h"
19#include "Outcome.h"
20
21#define RPENC_Z      1
22#define RPENC_B64    2
23#define RPENC_HDR    4
24
25#ifdef __cplusplus
26extern "C" {
27namespace Rappture {
28    namespace encoding {
29#endif // ifdef __cplusplus
30
31int isbinary(const char* buf, int size);
32Rappture::Outcome encode (Rappture::Buffer& buf, int flags);
33Rappture::Outcome decode (Rappture::Buffer& buf, int flags);
34
35#ifdef __cplusplus
36    } // namespace encoding
37} // namespace Rappture
38} // extern C
39#endif // ifdef __cplusplus
40
41#endif // RAPPTURE_ENCODE_H
Note: See TracBrowser for help on using the repository browser.