OpenSDN source code
thrift_file_transport.h
Go to the documentation of this file.
1
/*
2
* Copyright 2019, Juniper Networks Inc.
3
* Copyright Contributors to the OpenSDN project
4
*/
5
6
#ifndef _THRIFT_FILE_TRANSPORT_H
7
#define _THRIFT_FILE_TRANSPORT_H
8
9
#ifdef __cplusplus
10
extern
"C"
{
11
#endif
12
13
#ifndef __KERNEL__
14
15
#include <stdio.h>
16
21
#define MAX_FILE_NAME 512
22
26
struct
_ThriftFileTransport
27
{
28
/* Needs to be the first element */
29
ThriftTransport
tt
;
30
31
/* private */
32
char
filename
[
MAX_FILE_NAME
];
33
FILE *
fp
;
34
};
35
typedef
struct
_ThriftFileTransport
ThriftFileTransport
;
36
37
int
thrift_file_transport_init
(
ThriftFileTransport
*t,
char
*
filename
);
38
void
thrift_file_transport_close
(
ThriftFileTransport
*ft);
39
40
#endif
/* __KERNEL__ */
41
42
#ifdef __cplusplus
43
}
44
#endif
45
46
#endif
_ThriftFileTransport
Definition:
thrift_file_transport.h:27
_ThriftFileTransport::tt
ThriftTransport tt
Definition:
thrift_file_transport.h:29
_ThriftFileTransport::filename
char filename[MAX_FILE_NAME]
Definition:
thrift_file_transport.h:32
_ThriftFileTransport::fp
FILE * fp
Definition:
thrift_file_transport.h:33
_ThriftTransport
Definition:
thrift_transport.h:46
thrift_file_transport_init
int thrift_file_transport_init(ThriftFileTransport *t, char *filename)
MAX_FILE_NAME
#define MAX_FILE_NAME
Definition:
thrift_file_transport.h:21
thrift_file_transport_close
void thrift_file_transport_close(ThriftFileTransport *ft)
contrail
src
contrail-common
sandesh
library
c
transport
thrift_file_transport.h
Generated by
1.9.1