Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.6.0.3
openapi_app_ctrl.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2018 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_app_ctrl.h
28 *
29 * @purpose Application Controls
30 *
31 * @component OpEN
32 *
33 * @create 11/23/2015
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_APP_CTRL_H_INCLUDED
39 #define OPENAPI_APP_CTRL_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
43 /* max size for application status and version strings (including terminating NULL) */
44 #define OPEN_APP_CTRL_NAME_SIZE 17
45 #define OPEN_APP_CTRL_STATUS_SIZE 512
46 #define OPEN_APP_CTRL_VERSION_SIZE 20
47 
48 /*****************************************************************/
65  open_buffdesc *appName);
66 
67 /*****************************************************************/
87  open_buffdesc *appName);
88 
89 /*****************************************************************/
113  open_buffdesc *appName,
114  OPEN_CONTROL_t *startOnBoot,
115  OPEN_CONTROL_t *autoRestart,
116  uint32_t *cpuShare,
117  uint32_t *maxMemory);
118 
119 /*****************************************************************/
149  open_buffdesc *appName,
150  OPEN_CONTROL_t *startOnBoot,
151  OPEN_CONTROL_t *autoRestart,
152  uint32_t *cpuShare,
153  uint32_t *maxMemory);
154 
155 /*****************************************************************/
172  open_buffdesc *appName);
173 
174 /*****************************************************************/
190  open_buffdesc *appName);
191 
192 /*****************************************************************/
212  open_buffdesc *appName,
213  open_buffdesc *status);
214 
215 /*****************************************************************/
242  open_buffdesc *appName,
243  open_buffdesc *status);
244 
245 /*****************************************************************/
265  open_buffdesc *appName,
266  open_buffdesc *version);
267 
268 /*****************************************************************/
297  open_buffdesc *appName,
298  open_buffdesc *version);
299 
300 #endif /* OPENAPI_APP_CTRL_H_INCLUDED */
301 
open_error_t openapiAppCtrlEntryCreate(openapiClientHandle_t *client_handle, open_buffdesc *appName)
Creates a new Application Process Table entry for the given file name.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiAppCtrlStatusGet(openapiClientHandle_t *client_handle, open_buffdesc *appName, open_buffdesc *status)
Get application operational status.
open_error_t openapiAppCtrlEntryDelete(openapiClientHandle_t *client_handle, open_buffdesc *appName)
Deletes an Application Process Table entry for the given file name.
open_error_t openapiAppCtrlVersionSet(openapiClientHandle_t *client_handle, open_buffdesc *appName, open_buffdesc *version)
Set application version identifier.
open_error_t openapiAppCtrlStart(openapiClientHandle_t *client_handle, open_buffdesc *appName)
Starts the process with Process Manager using the parameters configured in the process entry...
open_error_t openapiAppCtrlAttrSet(openapiClientHandle_t *client_handle, open_buffdesc *appName, OPEN_CONTROL_t *startOnBoot, OPEN_CONTROL_t *autoRestart, uint32_t *cpuShare, uint32_t *maxMemory)
Sets start on boot, auto-restart, CPU sharing and memory limit settings for the process entry...
OPEN_CONTROL_t
OPEN uses these enumerators to indicate enable or disable for a given config or status parameter...
open_error_t openapiAppCtrlStop(openapiClientHandle_t *client_handle, open_buffdesc *appName)
Stops the process with Process Manager.
open_error_t openapiAppCtrlAttrGet(openapiClientHandle_t *client_handle, open_buffdesc *appName, OPEN_CONTROL_t *startOnBoot, OPEN_CONTROL_t *autoRestart, uint32_t *cpuShare, uint32_t *maxMemory)
Gets start on boot, auto-restart, CPU sharing and memory limit settings for the process entry...
open_error_t openapiAppCtrlStatusSet(openapiClientHandle_t *client_handle, open_buffdesc *appName, open_buffdesc *status)
Set application operational status.
open_error_t openapiAppCtrlVersionGet(openapiClientHandle_t *client_handle, open_buffdesc *appName, open_buffdesc *version)
Get application version identifier.