Source
14
14
**
15
15
** You should have received a copy of the GNU General Public License
16
16
** along with this program; if not, write to the Free Software
17
17
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
18
**/
19
19
20
20
#ifndef ZABBIX_DISCOVERY_H
21
21
#define ZABBIX_DISCOVERY_H
22
22
23
23
#include "zbxdbhigh.h"
24
-
#include "zbxcacheconfig.h"
25
24
26
25
typedef struct
27
26
{
28
27
zbx_uint64_t dcheckid;
29
28
unsigned short port;
30
29
char dns[ZBX_INTERFACE_DNS_LEN_MAX];
31
30
char value[ZBX_MAX_DISCOVERED_VALUE_SIZE];
32
31
int status;
33
32
time_t itemtime;
34
33
}
35
34
zbx_dservice_t;
36
35
37
36
void zbx_discovery_update_host(zbx_db_dhost *dhost, int status, int now);
38
-
void zbx_discovery_update_service(zbx_uint64_t druleid, zbx_uint64_t dcheckid, zbx_uint64_t unique_dcheckid,
39
-
zbx_db_dhost *dhost, const char *ip, const char *dns, int port, int status, const char *value, int now);
37
+
void zbx_discovery_update_service(const zbx_db_drule *drule, zbx_uint64_t dcheckid, zbx_db_dhost *dhost,
38
+
const char *ip, const char *dns, int port, int status, const char *value, int now);
40
39
#endif