forked from ros2-java/ros2_java
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathorg_ros2_rcljava_action_ActionServerImpl.h
More file actions
138 lines (122 loc) · 4.81 KB
/
org_ros2_rcljava_action_ActionServerImpl.h
File metadata and controls
138 lines (122 loc) · 4.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// Copyright 2020 ros2-java contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <jni.h>
/* Header for class org_ros2_rcljava_action_ActionServerImpl */
#ifndef ORG_ROS2_RCLJAVA_ACTION_ACTIONSERVERIMPL_H_
#define ORG_ROS2_RCLJAVA_ACTION_ACTIONSERVERIMPL_H_
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: org_ros2_rcljava_action_ActionServerImpl
* Method: nativeGetNumberOfEntities
* Signature: (L)[I
* Returns array of numbers for each type of entity,
* [subscriptions, guard_conditions, timers, clients, services]
*/
JNIEXPORT jintArray
JNICALL Java_org_ros2_rcljava_action_ActionServerImpl_nativeGetNumberOfEntities(
JNIEnv *, jclass, jlong);
/*
* Class: org_ros2_rcljava_action_ActionServerImpl
* Method: nativeGetReadyEntities
* Signature: (LL)[Z
*/
JNIEXPORT jbooleanArray
JNICALL Java_org_ros2_rcljava_action_ActionServerImpl_nativeGetReadyEntities(
JNIEnv *, jclass, jlong, jlong);
/*
* Class: org_ros2_rcljava_action_ActionServerImpl
* Method: nativeDispose
* Signature: (JJ)V
*/
JNIEXPORT void
JNICALL Java_org_ros2_rcljava_action_ActionServerImpl_nativeDispose(JNIEnv *, jclass, jlong, jlong);
/*
* Class: org_ros2_rcljava_action_ActionServerImpl
* Method: nativeCreateActionServer
* Signature: (JLjava/lang/Class;Ljava/lang/String;)J
*/
JNIEXPORT jlong
JNICALL Java_org_ros2_rcljava_action_ActionServerImpl_nativeCreateActionServer(
JNIEnv *, jobject, jlong, jlong, jclass, jstring);
/*
* Class: org_ros2_rcljava_action_ActionServerImpl
* Method: nativeTakeGoalRequest
* Signature: (JJJJLorg/ros2/rcljava/interfaces/MessageDefinition;)Lorg/ros2/rcljava/RMWRequestId;
*/
JNIEXPORT jobject
JNICALL Java_org_ros2_rcljava_action_ActionServerImpl_nativeTakeGoalRequest(
JNIEnv *, jclass, jlong, jlong, jlong, jlong, jobject);
/*
* Class: org_ros2_rcljava_action_ActionServerImpl
* Method: nativeTakeCancelRequest
* Signature: (JJJJLorg/ros2/rcljava/interfaces/MessageDefinition;)Lorg/ros2/rcljava/RMWRequestId;
*/
JNIEXPORT jobject
JNICALL Java_org_ros2_rcljava_action_ActionServerImpl_nativeTakeCancelRequest(
JNIEnv *, jclass, jlong, jlong, jlong, jlong, jobject);
/*
* Class: org_ros2_rcljava_action_ActionServerImpl
* Method: nativeTakeResultRequest
* Signature: (JJJJLorg/ros2/rcljava/interfaces/MessageDefinition;)Lorg/ros2/rcljava/RMWRequestId;
*/
JNIEXPORT jobject
JNICALL Java_org_ros2_rcljava_action_ActionServerImpl_nativeTakeResultRequest(
JNIEnv *, jclass, jlong, jlong, jlong, jlong, jobject);
/*
* Class: org_ros2_rcljava_action_ActionServerImpl
* Method: nativeSendGoalResponse
* Signature: (JLorg/ros2/rcljava/RMWRequestId;JJJLorg/ros2/rcljava/interfaces/MessageDefinition;)
*/
JNIEXPORT void
JNICALL Java_org_ros2_rcljava_action_ActionServerImpl_nativeSendGoalResponse(
JNIEnv *, jclass, jlong, jobject, jlong, jlong, jlong, jobject);
/*
* Class: org_ros2_rcljava_action_ActionServerImpl
* Method: nativeSendCancelResponse
* Signature: (JLorg/ros2/rcljava/RMWRequestId;JJJLorg/ros2/rcljava/interfaces/MessageDefinition;)
*/
JNIEXPORT void
JNICALL Java_org_ros2_rcljava_action_ActionServerImpl_nativeSendCancelResponse(
JNIEnv *, jclass, jlong, jobject, jlong, jlong, jlong, jobject);
/*
* Class: org_ros2_rcljava_action_ActionServerImpl
* Method: nativeSendResultResponse
* Signature: (JLorg/ros2/rcljava/RMWRequestId;JJJLorg/ros2/rcljava/interfaces/MessageDefinition;)
*/
JNIEXPORT void
JNICALL Java_org_ros2_rcljava_action_ActionServerImpl_nativeSendResultResponse(
JNIEnv *, jclass, jlong, jobject, jlong, jlong, jlong, jobject);
/*
* Class: org_ros2_rcljava_action_ActionServerImpl
* Method: nativeProcessCancelRequest
* Signature: (JJJJLorg/ros2/rcljava/interfaces/MessageDefinition;Lorg/ros2/rcljava/interfaces/MessageDefinition;)
*/
JNIEXPORT void
JNICALL Java_org_ros2_rcljava_action_ActionServerImpl_nativeProcessCancelRequest(
JNIEnv *, jclass, jlong, jlong, jlong, jlong, jobject, jobject);
/*
* Class: org_ros2_rcljava_action_ActionServerImpl
* Method: nativeCheckGoalExists
* Signature: (JLorg/ros2/rcljava/interfaces/MessageDefinition;JJ)Z
*/
JNIEXPORT jboolean
JNICALL Java_org_ros2_rcljava_action_ActionServerImpl_nativeCheckGoalExists(
JNIEnv * env, jclass,
jlong, jobject, jlong, jlong);
#ifdef __cplusplus
}
#endif
#endif // ORG_ROS2_RCLJAVA_ACTION_ACTIONSERVERIMPL_H__