1234567891011121314151617181920212223242526 |
- /**
- * \file hs_cache.h
- * \brief Header file for hs_cache.c
- **/
- #ifndef TOR_HS_PIRPROCESS_H
- #define TOR_HS_PIRPROCESS_H
- #define PIRPROCESS_HDR_SIZE 13
- #include "lib/container/buffers.h"
- typedef void (*pir_process_msghandler_t)(const unsigned char *hdrbuf,
- const char *bodybuf, size_t bodylen);
- typedef struct pir_process_st *pir_process_t;
- void hs_pirprocess_poke(const char *path, const char *loglabel,
- pir_process_msghandler_t msghandler, pir_process_t *handlep);
- void hs_pirprocess_close(pir_process_t *handlep);
- int hs_pirprocess_send(pir_process_t handle, const unsigned char *buf,
- size_t len);
- #endif /* !defined(TOR_HS_PIRPROCESS_H) */
|