Files
selfcare/proxy_c/selfcare_endecode.h
2025-03-03 11:40:37 +08:00

49 lines
914 B
C

#ifndef __SELFCARE_ENDECODE_H__
#define __SELFCARE_ENDECODE_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <signal.h>
#include <fcntl.h>
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include <event2/event.h>
#include <event2/http.h>
#include <event2/buffer.h>
#include <event2/util.h>
#include <event2/keyvalq_struct.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <json.h>
#include "selfcare_httpsrv.h"
#include "restapi.h"
int selfcare_decode(struct evhttp_request *req,
const SELFCARE_URL_E req_type,
_rest_msg_s *msg);
int selfcare_encode(const SELFCARE_URL_E req_type, const _rest_msg_s *udp_msg, char **buf);
#ifdef __cplusplus
}
#endif
#endif /* __SELFCARE_ENDECODE_H__ */