forked from nasa/bplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbplib_store_ram.h
57 lines (47 loc) · 2.05 KB
/
bplib_store_ram.h
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
/*
* NASA Docket No. GSC-18,587-1 and identified as “The Bundle Protocol Core Flight
* System Application (BP) v6.5”
*
* Copyright © 2020 United States Government as represented by the Administrator of
* the National Aeronautics and Space Administration. All Rights Reserved.
* 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.
*
*/
#ifndef BPLIB_STORE_RAM_H
#define BPLIB_STORE_RAM_H
#ifdef __cplusplus
extern "C" {
#endif
/******************************************************************************
INCLUDES
******************************************************************************/
#include "bplib.h"
/******************************************************************************
PROTOTYPES
******************************************************************************/
/* Application API */
void bplib_store_ram_init(void);
/* Service API */
bp_handle_t bplib_store_ram_create(int type, bp_ipn_t node, bp_ipn_t service, bool recover, void *parm);
int bplib_store_ram_destroy(bp_handle_t h);
int bplib_store_ram_enqueue(bp_handle_t h, const void *data1, size_t data1_size, const void *data2, size_t data2_size,
int timeout);
int bplib_store_ram_dequeue(bp_handle_t h, bp_object_t **object, int timeout);
int bplib_store_ram_retrieve(bp_handle_t h, bp_sid_t sid, bp_object_t **object, int timeout);
int bplib_store_ram_release(bp_handle_t h, bp_sid_t sid);
int bplib_store_ram_relinquish(bp_handle_t h, bp_sid_t sid);
int bplib_store_ram_getcount(bp_handle_t h);
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* BPLIB_STORE_RAM_H */