|
OSAPI
0.29
Open System API
|
10 #ifndef OSAPI_COM_TYPE_CONN_SIDE_H_
11 #define OSAPI_COM_TYPE_CONN_SIDE_H_
23 #include "general/general_protocol.h"
24 #include "common/common_types.h"
27 #include "com/type/com_type_endpoint.h"
Definition of opaque status type.
Definition: status_types.h:56
struct conn_side_p2p_S p2p
Point to Point connection side.
Definition: com_type_conn_side.h:56
t_endpoint ep
The endpoint information for Point to Point connections.
Definition: com_type_conn_side.h:40
#define status_iset(m, f, e, r)
Set status type with OSAPI library information.
Definition: status_defs.h:61
t_status com_semaphore_getValue(int semid, int *value)
Obtains the semaphore value that corresponds to the given ID.
#define status_eset(m, f, e, r)
Set status type with C library information.
Definition: status_defs.h:64
Define a generic connection endpoint type.
Definition: com_type_endpoint.h:33
t_status com_semaphore_supported(void)
Are semaphores supported in this platform ?
t_status com_semaphore_lock(int semid, bool wait)
Locks a given semaphore.
union connection_side_S::u_side side
The connection side information.
Placeholder structure for now (dummy)
Definition: com_type_conn_side.h:44
#define RETURN_STATUS_SUCCESS
Short notation to set a status type with a default value of success.
Definition: status_defs.h:55
t_status com_semaphore_destroy(int semid)
Destroys the semaphore identified by "semid".
t_endpoint ep[2]
The endpoint information for MultiPoint connections.
Definition: com_type_conn_side.h:46
t_status com_semaphore_open(key_t key, int *semid)
Returns the semaphore ID for the provided semaphore key.
t_status com_semaphore_unlock(int semid, bool wait)
Unlocks a given semaphore.
#define status_reset(x)
Resets the status structure (to success)
Definition: status_macros.h:37
The union of all possible connection sides.
Definition: com_type_conn_side.h:54
Define a connection side type.
Definition: com_type_conn_side.h:51
t_status com_semaphore_create(key_t key, int sem_value, int sem_options, int *semid)
Create an IPC semaphore.
Point to Point connection topology.
Definition: com_type_conn_side.h:38
struct conn_side_mp_S mp
Multi Point connection side.
Definition: com_type_conn_side.h:57