xref: /illumos-gate/usr/src/cmd/hal/addons/network-devices/network-discovery.h (revision 533affcbc7fc4d0c8132976ea454aaa715fe2307)
1 /*
2  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  *
5  * Licensed under the Academic Free License version 2.1
6  */
7 
8 #ifndef NETWORK_DEVICE_COMMON_H
9 #define	NETWORK_DEVICE_COMMON_H
10 
11 #include <libhal.h>
12 
13 extern void network_device_name_to_udi(char *udi, size_t size, ...);
14 extern int add_network_printer(LibHalContext *ctx, char *parent, char *hostaddr,
15 			char *device, char *community);
16 
17 extern gboolean scan_for_devices_using_snmp(LibHalContext *ctx, char *parent,
18 		char *community, char *network);
19 extern void scan_for_stale_devices(LibHalContext *ctx, time_t timestamp);
20 extern gboolean device_seen(char *name);
21 
22 extern int is_listening(char *hostname, int port);
23 
24 extern GList *broadcast_addresses();
25 
26 #endif /* NETWORK_DEVICE_COMMON_H */
27