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

Don't implement VRT_* functions in libvarnish

parent bd9a741e
...@@ -872,3 +872,9 @@ VRT_blob(VRT_CTX, const char *err, const void *src, size_t len) ...@@ -872,3 +872,9 @@ VRT_blob(VRT_CTX, const char *err, const void *src, size_t len)
p->priv = d; p->priv = d;
return (p); return (p);
} }
int
VRT_VSA_GetPtr(const struct suckaddr *sua, const unsigned char ** dst)
{
return (VSA_GetPtr(sua, dst));
}
...@@ -55,4 +55,11 @@ struct suckaddr *VSA_Malloc(const void *s, unsigned sal); ...@@ -55,4 +55,11 @@ struct suckaddr *VSA_Malloc(const void *s, unsigned sal);
*/ */
struct suckaddr *VSA_Build(void *d, const void *s, unsigned sal); struct suckaddr *VSA_Build(void *d, const void *s, unsigned sal);
/*
* This VRT interface is for the VCC generated ACL code, which needs
* to know the address family and a pointer to the actual address.
*/
int VSA_GetPtr(const struct suckaddr *sua, const unsigned char ** dst);
#endif #endif
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
#include "vdef.h" #include "vdef.h"
#include "vas.h" #include "vas.h"
#include "vsa.h" #include "vsa.h"
#include "vrt.h"
#include "miniobj.h" #include "miniobj.h"
/* /*
...@@ -204,7 +203,7 @@ VSA_Init() ...@@ -204,7 +203,7 @@ VSA_Init()
*/ */
int int
VRT_VSA_GetPtr(const struct suckaddr *sua, const unsigned char ** dst) VSA_GetPtr(const struct suckaddr *sua, const unsigned char ** dst)
{ {
AN(dst); AN(dst);
......
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