FD.io VPP  v19.01.2-3-gf61a1a8
Vector Packet Processing
jvpp_core.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef VPP_JVPP_CORE_H
17 #define VPP_JVPP_CORE_H
18 
19 #include <vlibapi/api_types.h>
20 
21 #endif //VPP_JVPP_CORE_H
22 
23 // /**
24 // * Host to network byte order conversion for string type. Converts String in Java to VPP string type.
25 // * typedef struct
26 // * {
27 // * u32 length;
28 // * u8 buf[0];
29 // * } __attribute__ ((packed)) vl_api_string_t;
30 // */
31 static void _host_to_net_string(JNIEnv * env, jstring javaString, vl_api_string_t * vl_api_string);
32 
33 
34 //
35 // /**
36 // * Network to host byte order conversion for string type. Converts VPP string type to String in Java
37 // * typedef struct
38 // * {
39 // * u32 length;
40 // * u8 buf[0];
41 // * } __attribute__ ((packed)) vl_api_string_t;
42 // */
43 static jstring _net_to_host_string(JNIEnv * env, const vl_api_string_t * _net);
44 
45 
46 //
47 // /**
48 // * Returns the length of jstring as size_t
49 // */
50 static size_t jstr_length(JNIEnv *env, jstring string);
static size_t jstr_length(JNIEnv *env, jstring string)
Returns the length of jstring as size_t.