source: MondoRescue/branches/2.2.2/mindi-busybox/networking/udhcp/libbb_udhcp.h@ 1247

Last change on this file since 1247 was 821, checked in by Bruno Cornec, 18 years ago

Addition of busybox 1.2.1 as a mindi-busybox new package
This should avoid delivering binary files in mindi not built there (Fedora and Debian are quite serious about that)

File size: 1.3 KB
Line 
1/* libbb_udhcp.h - busybox compatibility wrapper */
2
3/* bit of a hack, do this no matter what the order of the includes.
4 * (for busybox) */
5
6#ifndef _LIBBB_UDHCP_H
7#define _LIBBB_UDHCP_H
8
9#include "packet.h"
10#include "busybox.h"
11
12#ifdef CONFIG_INSTALL_NO_USR
13# define DEFAULT_SCRIPT "/share/udhcpc/default.script"
14#else
15# define DEFAULT_SCRIPT "/usr/share/udhcpc/default.script"
16#endif
17
18
19
20#define COMBINED_BINARY
21
22#define xfopen bb_xfopen
23
24void udhcp_background(const char *pidfile);
25void udhcp_start_log_and_pid(const char *client_server, const char *pidfile);
26void udhcp_logging(int level, const char *fmt, ...);
27
28void udhcp_run_script(struct dhcpMessage *packet, const char *name);
29
30// Still need to clean these up...
31
32/* from pidfile.h */
33#define pidfile_acquire udhcp_pidfile_acquire
34#define pidfile_write_release udhcp_pidfile_write_release
35/* from options.h */
36#define get_option udhcp_get_option
37#define end_option udhcp_end_option
38#define add_option_string udhcp_add_option_string
39#define add_simple_option udhcp_add_simple_option
40#define option_lengths udhcp_option_lengths
41/* from socket.h */
42#define listen_socket udhcp_listen_socket
43#define read_interface udhcp_read_interface
44/* from dhcpc.h */
45#define client_config udhcp_client_config
46/* from dhcpd.h */
47#define server_config udhcp_server_config
48
49#endif /* _LIBBB_UDHCP_H */
Note: See TracBrowser for help on using the repository browser.