dynwatch

view watch.h @ 0:ce3c5e4c75bf

dynwatch DynDNS updater for windows
author John Tsiombikas <nuclear@siggraph.org>
date Wed, 18 May 2011 05:53:29 +0300
parents
children
line source
1 /*
2 This file is part of dynwatch, a win32 system tray applet which
3 updates automatically the dyndns entry of quake.gr.
5 Copyright (c) 2005 John Tsiombikas <nuclear@siggraph.org>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
22 #ifndef _WATCH_H_
23 #define _WATCH_H_
25 #define info_msg(x) MessageBox(0, x, "dynwatch info", MB_ICONINFORMATION | MB_OK)
26 #define err_msg(x) MessageBox(0, x, "dynwatch error", MB_ICONSTOP | MB_OK)
28 extern char user[256], pass[256], dhost[256], hosts[256];
30 void init(void);
31 int need_update(void);
32 int update_dns(void);
34 void save_config(void);
36 #endif /* _WATCH_H_ */