forked from buaazp/zimg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzimg.h
32 lines (27 loc) · 870 Bytes
/
zimg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* zimg - high performance image storage and processing system.
* http://zimg.buaa.us
*
* Copyright (c) 2013-2014, Peter Zhao <[email protected]>.
* All rights reserved.
*
* Use and distribution licensed under the BSD license.
* See the LICENSE file for full text.
*
*/
/**
* @file zimg.h
* @brief Convert, get and save image functions header.
* @author 招牌疯子 [email protected]
* @version 3.0.0
* @date 2014-08-14
*/
#ifndef ZIMG_H
#define ZIMG_H
#include "zcommon.h"
int save_img(thr_arg_t *thr_arg, const char *buff, const int len, char *md5);
int new_img(const char *buff, const size_t len, const char *save_name);
int get_img(zimg_req_t *req, evhtp_request_t *request);
int admin_img(evhtp_request_t *req, thr_arg_t *thr_arg, char *md5, int t);
int info_img(evhtp_request_t *request, thr_arg_t *thr_arg, char *md5);
#endif