removed data.h
This commit is contained in:
parent
6dd4095107
commit
0281a58d3e
20
data.h
20
data.h
|
@ -1,20 +0,0 @@
|
|||
#ifndef DATA_H
|
||||
#define DATA_H
|
||||
/**
|
||||
* \file data.h
|
||||
* \brief This header stores all the custom data type definition
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
/** \brief use this data type for buffer */
|
||||
typedef struct BufferStruct BufferStruct;
|
||||
|
||||
struct MemoryStruct {
|
||||
char *memory;
|
||||
size_t size;
|
||||
};
|
||||
|
||||
typedef struct MemoryStruct MemoryStruct;
|
||||
|
||||
#endif
|
3
main.c
3
main.c
|
@ -7,6 +7,7 @@
|
|||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
static char *BASE_URL;
|
||||
|
@ -49,7 +50,7 @@ static void fs_usage()
|
|||
{
|
||||
fprintf(stderr,
|
||||
"usage: mount-http-dir [options] URL mount_point\n");
|
||||
abort();
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
static void *fs_init(struct fuse_conn_info *conn)
|
||||
|
|
|
@ -11,6 +11,13 @@
|
|||
#define HTTP_OK 200
|
||||
#define HTTP_PARTIAL_CONTENT 206
|
||||
|
||||
/* ------------------------ Local structs ---------------------------------*/
|
||||
struct MemoryStruct {
|
||||
char *memory;
|
||||
size_t size;
|
||||
};
|
||||
typedef struct MemoryStruct MemoryStruct;
|
||||
|
||||
/* ------------------------ External variables ----------------------------*/
|
||||
LinkTable *ROOT_LINK_TBL;
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#ifndef NETWORK_H
|
||||
#define NETWORK_H
|
||||
|
||||
#include "data.h"
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include <gumbo.h>
|
||||
|
||||
|
@ -10,7 +8,7 @@
|
|||
#define LINK_LEN_MAX 255
|
||||
|
||||
#ifndef HTTPDIRFS_SINGLE
|
||||
# define CURL_MULTI_MAX_CONNECTION 10
|
||||
# define CURL_MULTI_MAX_CONNECTION 20
|
||||
#endif
|
||||
|
||||
/** \brief the link type */
|
||||
|
|
Loading…
Reference in New Issue