This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-tfe/cache/tango_cache_tools.h
zhangchengwei 0bfd49194e 创建
2018-10-08 19:33:01 +08:00

21 lines
797 B
C

#ifndef __TANGO_CACHE_TOOLS_H__
#define __TANGO_CACHE_TOOLS_H__
#include <MESA/MESA_handle_logger.h>
#define MESA_HANDLE_RUNTIME_LOGV2(handle, lv, fmt, args...) \
MESA_handle_runtime_log((handle), (lv), "TANGO_CACHE", "%s:%d, " fmt, __FILE__, __LINE__, ##args)
int Base64_EncodeBlock(const unsigned char *in, int inl, unsigned char *out);
int Base64_DecodeBlock(const unsigned char *in, int inl, unsigned char *out, int outsize);
int strcmp_one_word_mesa_equal_len(const char *s1_lowercase, const char *s1_uppercase, const char *s2, size_t len);
int mkdir_according_path(const char * path);
time_t get_gmtime_timestamp(time_t seconds);
time_t expires_hdr2timestamp(const char *expires_val, int len);
size_t expires_timestamp2hdr_str(time_t seconds, char *buffer, size_t size);
#endif