bootinfo.h 1.47 KB
Newer Older
1
/*
2
 * Copyright (c) 2000-2014 University of Utah and the Flux Group.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
 * 
 * {{{EMULAB-LICENSE
 * 
 * This file is part of the Emulab network testbed software.
 * 
 * This file is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or (at
 * your option) any later version.
 * 
 * This file is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public
 * License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this file.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * }}}
22 23
 */
struct boot_what;
24
struct boot_info;
25 26 27

int		open_bootinfo_db(void);
int		close_bootinfo_db(void);
28
int		bootinfo_init(void);
29 30
int		bootinfo(struct in_addr ipaddr, char *node_id,
			 struct boot_info *info, void *opaque,
31
			 int no_event_send, int *event_sent);
32 33 34
int		query_bootinfo_db(struct in_addr ipaddr, char *node_id, 
				  int version, struct boot_what *info, 
				  char *key);
35
int		findnode_bootinfo_db(struct in_addr ipaddr, int *events);
36
int		elabinelab_hackcheck(struct sockaddr_in *target);
37 38 39 40 41 42

extern int debug;

#ifdef EVENTSYS
int		bievent_init(void);
int		bievent_shutdown(void);
43
int		bievent_send(struct in_addr ipaddr, void *opaque, char *event);
44 45
#endif