summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1999-09-22 01:45:57 +0000
committerTed Lemon <source@isc.org>1999-09-22 01:45:57 +0000
commitfa098be8f9b723c78a0cb4479b8d297dbece3c9e (patch)
tree7cef47a6ef00b0c732ead3032b6e4970551e5d9f /includes
parentfd10f7c61a1dd8d6d9bc42c3a16d16c54a55c60c (diff)
downloadisc-dhcp-fa098be8f9b723c78a0cb4479b8d297dbece3c9e.tar.gz
Implement printing out of expressions so that they can be output to the lease database file and later read back in.
Diffstat (limited to 'includes')
-rw-r--r--includes/dhcpd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/dhcpd.h b/includes/dhcpd.h
index e32ca9ad..d7fffefb 100644
--- a/includes/dhcpd.h
+++ b/includes/dhcpd.h
@@ -1010,6 +1010,7 @@ int is_data_expression PROTO ((struct expression *));
int is_numeric_expression PROTO ((struct expression *));
int op_precedence PROTO ((enum expr_op, enum expr_op));
enum expression_context op_context PROTO ((enum expr_op));
+int write_expression (FILE *, struct expression *, int, int);
/* dhcp.c */
extern int outstanding_pings;
@@ -1148,6 +1149,8 @@ int executable_statement_reference PROTO ((struct executable_statement **,
char *));
int executable_statement_dereference PROTO ((struct executable_statement **,
char *));
+void write_statements (FILE *, struct executable_statement *, int);
+
int packet_allocate PROTO ((struct packet **, char *));
int packet_reference PROTO ((struct packet **, struct packet *, char *));
int packet_dereference PROTO ((struct packet **, char *));
@@ -1165,6 +1168,11 @@ char *print_dotted_quads PROTO ((int, u_int8_t *));
char *print_dec_1 PROTO ((int));
char *print_dec_2 PROTO ((int));
void print_expression PROTO ((char *, struct expression *));
+int token_print_indent_concat (FILE *, int, int, char *, char *, ...);
+int token_indent_data_string (FILE *, int, int, char *, char *,
+ struct data_string *);
+int token_print_indent (FILE *, int, int, char *, char *, char *);
+void indent_spaces (FILE *, int);
/* socket.c */
#if defined (USE_SOCKET_SEND) || defined (USE_SOCKET_RECEIVE) \