blob: 5c5ff3d0bb0d5a8bf0ac6a305584880f213bf0bd (
plain) (
blame)
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
|
/*******************************************************************************
* Copyright (c) 2013 protos software gmbh (http://www.protos.de).
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* CONTRIBUTORS:
* Thomas Schuetz (initial contribution)
*
*******************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _ETRUNTIME_H_
#define _ETRUNTIME_H_
#include "messaging/etMessageService.h"
/**
* \file etRuntime.h
*
* runtime methods
*
* \author Thomas Schuetz
*/
#include "osal/etSema.h"
/**
* returns the number of message services in this process
*
* \return the number of message services in this process
*/
int etRuntime_getMessageServiceCount();
/**
* returns the statistics of a message service
*
* \param i the message service instance number
* \return the statistics of this message service
*/
const etMessageServiceStatistics* etRuntime_getMessageServiceStatistics(unsigned int i);
/**
* finds a message service by its name and returns its index or -1 if not found
*
* \param name the name of the message service
* \return the index of the message service or -1
*/
int etRuntime_getMessageServiceByName(const char* name);
/**
* sets a flag in all message service structs that tells the message services to reset their statistics
*/
void etRuntime_resetAllMessageServiceStatistics();
/**
* registers the message service by hooking it into a linked list
*/
void etRuntime_registerMessageService(etMessageService* msgService);
/**
* unregisters the message service by removing it from the linked list
*/
void etRuntime_unregisterMessageService(etMessageService* msgService);
/**
* a global semaphore used to terminate the application in headless mode
*
* \return the semaphore
*/
etSema* etRuntime_getTerminateSemaphore();
#endif /* _ETRUNTIME_H_ */
#ifdef __cplusplus
}
#endif
|