mirror of
https://github.com/nasa/trick.git
synced 2025-01-09 14:32:53 +00:00
14a75508a3
Changed all header file once include variables to follow the same naming convention and not start with any underscores. Also deleted old incorrect copyright notices. Also removed $Id: tags from all files. Fixes #14. Fixes #22.
35 lines
693 B
C
35 lines
693 B
C
/*
|
|
PURPOSE:
|
|
(Specify the trick shared memory library API and structure definition)
|
|
PROGRAMMERS:
|
|
(((Danny Strauss) (L3) (Sep 2012) (--) (Initial Version)))
|
|
ICG:
|
|
(No)
|
|
*/
|
|
|
|
#ifndef TSM_PROTO_H
|
|
#define TSM_PROTO_H
|
|
|
|
#include "tsm.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Initialize a shared memory segment */
|
|
int tsm_init(TSMDevice * device);
|
|
|
|
/* Initialize a shared memory segment containing a pthread lock */
|
|
int tsm_init_with_lock(TSMDevice * device);
|
|
|
|
/* Reconnect to a disconnected shared memory segment */
|
|
int tsm_reconnect(TSMDevice * device);
|
|
|
|
/* Disconnect (detach) a shared memory segment */
|
|
int tsm_disconnect(TSMDevice * device);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|