FOSSology  4.4.0
Open Source License Compliance by Open Source Software
common.h
1 /*
2  Author: Daniele Fognini, Andreas Wuerl
3  SPDX-FileCopyrightText: © 2013-2014 Siemens AG
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
8 #ifndef MONK_AGENT_COMMON_H
9 #define MONK_AGENT_COMMON_H
10 
11 #include "monk.h"
12 #include "diff.h"
13 
14 void scheduler_disconnect(MonkState* state, int exitval);
15 void bail(MonkState* state, int exitval);
16 void queryAgentId(MonkState* state, const char* agentName, const char* agentDesc);
17 #endif // MONK_AGENT_COMMON_H
int queryAgentId(PGconn *dbConn)
Get agent id, exit if agent id is incorrect.
void bail(int exitval)
Disconnect with scheduler returning an error code and exit.
Definition: monk.h:44