trick/trick_source/trick_utils/shm/include/tsm_proto.h
Alex Lin 14a75508a3 Cleaning up once include variables and copyright cleanup.
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.
2015-03-23 16:03:14 -05:00

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