blob: c21d3baab8a1aff44cbfd9641c4b0d1bb2956503 [file] [log] [blame]
"Robert P. J. Day"63fc1a92006-07-02 19:47:05 +00001/* vi: set sw=4 ts=4: */
Mike Frysinger7031f622006-05-08 03:20:50 +00002/* libbb_udhcp.h - busybox compatibility wrapper */
3
4/* bit of a hack, do this no matter what the order of the includes.
5 * (for busybox) */
6
7#ifndef _LIBBB_UDHCP_H
8#define _LIBBB_UDHCP_H
9
Rob Landley3f785612006-05-28 01:06:36 +000010#include "packet.h"
11#include "busybox.h"
12
Mike Frysinger7031f622006-05-08 03:20:50 +000013#ifdef CONFIG_INSTALL_NO_USR
14# define DEFAULT_SCRIPT "/share/udhcpc/default.script"
15#else
16# define DEFAULT_SCRIPT "/usr/share/udhcpc/default.script"
17#endif
18
Mike Frysinger7031f622006-05-08 03:20:50 +000019
Mike Frysinger7031f622006-05-08 03:20:50 +000020
21#define COMBINED_BINARY
Mike Frysinger7031f622006-05-08 03:20:50 +000022
Rob Landley3f785612006-05-28 01:06:36 +000023void udhcp_background(const char *pidfile);
24void udhcp_start_log_and_pid(const char *client_server, const char *pidfile);
25void udhcp_logging(int level, const char *fmt, ...);
26
27void udhcp_run_script(struct dhcpMessage *packet, const char *name);
28
29// Still need to clean these up...
30
Mike Frysinger7031f622006-05-08 03:20:50 +000031/* from pidfile.h */
32#define pidfile_acquire udhcp_pidfile_acquire
33#define pidfile_write_release udhcp_pidfile_write_release
34/* from options.h */
35#define get_option udhcp_get_option
36#define end_option udhcp_end_option
37#define add_option_string udhcp_add_option_string
38#define add_simple_option udhcp_add_simple_option
39#define option_lengths udhcp_option_lengths
40/* from socket.h */
41#define listen_socket udhcp_listen_socket
42#define read_interface udhcp_read_interface
43/* from dhcpc.h */
44#define client_config udhcp_client_config
45/* from dhcpd.h */
46#define server_config udhcp_server_config
47
Mike Frysinger7031f622006-05-08 03:20:50 +000048#endif /* _LIBBB_UDHCP_H */