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