Commit d5015d74 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Rename cli.h to vcli.h and allow it to export the varnishapi VCLI

convenience functions unless this is disabled with a #define.
parent 10571f62
......@@ -41,7 +41,7 @@
#include <editline/readline.h>
#endif
#include "cli.h"
#include "vcli.h"
#include "cli_common.h"
#include "libvarnish.h"
#include "varnishapi.h"
......
......@@ -41,7 +41,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include "cli.h"
#include "vcli.h"
#include "cli_priv.h"
#include "cache.h"
#include "cache_waiter.h"
......
......@@ -51,7 +51,7 @@
#include <pcre.h>
#include "cli.h"
#include "vcli.h"
#include "vend.h"
#include "cli_priv.h"
#include "cache.h"
......
......@@ -43,7 +43,7 @@
#include <unistd.h>
#include <poll.h>
#include "cli.h"
#include "vcli.h"
#include "cli_priv.h"
#include "cli_common.h"
#include "cli_serve.h"
......
......@@ -39,7 +39,7 @@
#include <stdlib.h>
#include <dlfcn.h>
#include "cli.h"
#include "vcli.h"
#include "cli_priv.h"
#include "vcl.h"
#include "cache.h"
......
......@@ -46,7 +46,7 @@
#include "mgt.h"
#include "vsm.h"
#include "heritage.h"
#include "cli.h"
#include "vcli.h"
#include "cli_priv.h"
#include "mgt_cli.h"
#include "vev.h"
......
......@@ -47,7 +47,7 @@
#endif
#include "cli_priv.h"
#include "cli.h"
#include "vcli.h"
#include "vsb.h"
#include "cli_common.h"
#include "cli_serve.h"
......
......@@ -40,7 +40,7 @@
#include <string.h>
#include <unistd.h>
#include "cli.h"
#include "vcli.h"
#include "cli_priv.h"
#include "cli_common.h"
#include "mgt.h"
......
......@@ -44,7 +44,7 @@
#include "vsb.h"
#include "libvcl.h"
#include "cli.h"
#include "vcli.h"
#include "cli_priv.h"
#include "cli_common.h"
......
......@@ -48,7 +48,7 @@
#include "stevedore.h"
#include "hash_slinger.h"
#include "vsha256.h"
#include "cli.h"
#include "vcli.h"
#include "cli_priv.h"
#include "vend.h"
......
......@@ -55,7 +55,7 @@
#include "vpf.h"
#include "vsha256.h"
#include "cli.h"
#include "vcli.h"
#include "cli_priv.h"
#include "cli_common.h"
......
......@@ -46,7 +46,7 @@
#include "miniobj.h"
#include "libvarnish.h"
#include "varnishapi.h"
#include "cli.h"
#include "vcli.h"
#include "cli_common.h"
#include "vss.h"
#include "vsb.h"
......
......@@ -3,6 +3,7 @@
pkginclude_HEADERS = \
vsm.h \
vsl.h \
vcli.h \
vsl_tags.h \
vsc_fields.h \
vsc_all.h \
......@@ -12,7 +13,6 @@ pkginclude_HEADERS = \
nobase_noinst_HEADERS = \
ban_vars.h \
binary_heap.h \
cli.h \
cli_common.h \
cli_priv.h \
cli_serve.h \
......
......@@ -43,9 +43,3 @@ struct cli {
struct vlu *vlu;
struct VCLS *cls;
};
int VCLI_WriteResult(int fd, unsigned status, const char *result);
int VCLI_ReadResult(int fd, unsigned *status, char **ptr, double tmo);
void VCLI_AuthResponse(int S_fd, const char *challenge,
char reponse[CLI_AUTH_RESPONSE_LEN + 1]);
......@@ -208,3 +208,10 @@ enum VCLI_status_e {
#define CLI_LINE0_LEN 13
#define CLI_AUTH_RESPONSE_LEN 64 /* 64 hex + NUL */
#if !defined(VCLI_PROTOCOL_ONLY)
/* Convenience functions exported in libvarnishapi */
int VCLI_WriteResult(int fd, unsigned status, const char *result);
int VCLI_ReadResult(int fd, unsigned *status, char **ptr, double tmo);
void VCLI_AuthResponse(int S_fd, const char *challenge,
char reponse[CLI_AUTH_RESPONSE_LEN + 1]);
#endif
......@@ -32,8 +32,7 @@
#include <stdio.h>
#include <unistd.h>
#include "cli.h"
#include "cli_common.h"
#include "vcli.h"
#include "libvarnish.h"
#include "vsha256.h"
......
......@@ -46,7 +46,7 @@
#include "libvarnish.h"
#include "cli.h"
#include "vcli.h"
#include "cli_priv.h"
#include "cli_common.h"
......
......@@ -41,7 +41,7 @@
#include <vqueue.h>
#include <vsb.h>
#include <vlu.h>
#include <cli.h>
#include <vcli.h>
#include <cli_priv.h>
#include <cli_common.h>
#include <cli_serve.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment