|
|
/home/brennan/n-sim/Vaike/linux/system-addons/system/control/sensor_ctl.hGo to the documentation of this file.00001 00014 /* 00015 * Copyright 2007. Los Alamos National Security, LLC. This material 00016 * was produced under U.S. Government contract DE-AC52-06NA25396 for 00017 * Los Alamos National Laboratory (LANL), which is operated by Los 00018 * Alamos National Security, LLC, for the Department of Energy. The 00019 * U.S. Government has rights to use, reproduce, and distribute this 00020 * software. NEITHER THE GOVERNMENT NOR LOS ALAMOS NATIONAL SECURITY, 00021 * LLC, MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY LEGAL 00022 * LIABILITY FOR THE USE OF THIS SOFTWARE. If software is modified to 00023 * produce derivative works, such modified software should be clearly 00024 * marked, so as not to confuse it with the version available from LANL. 00025 * 00026 * Additionally, this program is free software; you can redistribute 00027 * it and/or modify it under the terms of the GNU General Public 00028 * License as published by the Free Software Foundation; version 2 of 00029 * the License. Accordingly, this program is distributed in the hope 00030 * it will be useful, but WITHOUT ANY WARRANTY; without even the 00031 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00032 * PURPOSE. See the GNU General Public License for more details. 00033 */ 00034 00035 #ifndef _DETECT_H_ 00036 #define _DETECT_H_ 00037 00038 00039 #include <limits.h> 00040 #include <minisoap.h> 00041 00042 00043 typedef struct _sensor { 00044 char path[PATH_MAX]; /* i.e. raw-'sensor' */ 00045 unsigned int ipc_port; 00046 00047 struct _sensor *next; 00048 } sensor_t; 00049 00050 00051 typedef struct _consume { 00052 char host_ip[NET_ADDR_LEN]; 00053 unsigned int port; 00054 00055 struct _consume *next; 00056 } consumer_t; 00057 00058 00059 typedef struct _app { 00060 char path[PATH_MAX]; 00061 00062 unsigned int running; 00063 char host[NET_ADDR_LEN]; /* obtain data from either another host */ 00064 int ipc_port; /* or from another app on this host */ 00065 00066 struct _app *required_apps; 00067 00068 consumer_t *sinks; 00069 struct _app *next; 00070 } app_t; 00071 00072 00073 00074 #endif // _DETECT_H_ |