6c25ad232595911d20e4b080c94a6e5bf0729cbc
[public/netxms.git] / src / server / include / nms_actions.h
1 /*
2 ** NetXMS - Network Management System
3 ** Copyright (C) 2003-2014 Victor Kirhenshtein
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU General Public License as published by
7 ** the Free Software Foundation; either version 2 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
14 **
15 ** You should have received a copy of the GNU General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 **
19 ** File: nms_actions.h
20 **
21 **/
22
23 #ifndef _nms_actions_h_
24 #define _nms_actions_h_
25
26
27 //
28 // Functions
29 //
30
31 BOOL InitActions();
32 void CleanupActions();
33 BOOL ExecuteAction(UINT32 dwActionId, Event *pEvent, const Alarm *alarm);
34 UINT32 CreateNewAction(const TCHAR *pszName, UINT32 *pdwId);
35 UINT32 DeleteActionFromDB(UINT32 dwActionId);
36 UINT32 ModifyActionFromMessage(NXCPMessage *pMsg);
37 void FillActionInfoMessage(NXCPMessage *pMsg, NXC_ACTION *pAction);
38 void SendActionsToClient(ClientSession *pSession, UINT32 dwRqId);
39
40 #endif /* _nms_actions_ */