diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-03 12:55:36 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-03 12:55:36 +0100 |
commit | f22abb4d1339fe55f5c10545de4b80fe3ac6aebe (patch) | |
tree | ad9ebbbeb6584d64310088b9769704f048f9daa4 /src/main/extractor_datasource.h | |
parent | 0f3f4f01cce39f83f029caa4c285035c409c0ced (diff) | |
download | libextractor-f22abb4d1339fe55f5c10545de4b80fe3ac6aebe.tar.gz libextractor-f22abb4d1339fe55f5c10545de4b80fe3ac6aebe.zip |
uncrustifying indentation
Diffstat (limited to 'src/main/extractor_datasource.h')
-rw-r--r-- | src/main/extractor_datasource.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/main/extractor_datasource.h b/src/main/extractor_datasource.h index f25cc4b..dc548a6 100644 --- a/src/main/extractor_datasource.h +++ b/src/main/extractor_datasource.h | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | /** | 30 | /** |
31 | * Handle to a datasource we can use for the plugins. | 31 | * Handle to a datasource we can use for the plugins. |
32 | */ | 32 | */ |
33 | struct EXTRACTOR_Datasource; | 33 | struct EXTRACTOR_Datasource; |
34 | 34 | ||
35 | 35 | ||
@@ -43,7 +43,8 @@ struct EXTRACTOR_Datasource; | |||
43 | */ | 43 | */ |
44 | struct EXTRACTOR_Datasource * | 44 | struct EXTRACTOR_Datasource * |
45 | EXTRACTOR_datasource_create_from_file_ (const char *filename, | 45 | EXTRACTOR_datasource_create_from_file_ (const char *filename, |
46 | EXTRACTOR_MetaDataProcessor proc, void *proc_cls); | 46 | EXTRACTOR_MetaDataProcessor proc, |
47 | void *proc_cls); | ||
47 | 48 | ||
48 | 49 | ||
49 | /** | 50 | /** |
@@ -57,8 +58,9 @@ EXTRACTOR_datasource_create_from_file_ (const char *filename, | |||
57 | */ | 58 | */ |
58 | struct EXTRACTOR_Datasource * | 59 | struct EXTRACTOR_Datasource * |
59 | EXTRACTOR_datasource_create_from_buffer_ (const char *buf, | 60 | EXTRACTOR_datasource_create_from_buffer_ (const char *buf, |
60 | size_t size, | 61 | size_t size, |
61 | EXTRACTOR_MetaDataProcessor proc, void *proc_cls); | 62 | EXTRACTOR_MetaDataProcessor proc, |
63 | void *proc_cls); | ||
62 | 64 | ||
63 | 65 | ||
64 | /** | 66 | /** |
@@ -81,14 +83,14 @@ EXTRACTOR_datasource_destroy_ (struct EXTRACTOR_Datasource *ds); | |||
81 | */ | 83 | */ |
82 | ssize_t | 84 | ssize_t |
83 | EXTRACTOR_datasource_read_ (void *cls, | 85 | EXTRACTOR_datasource_read_ (void *cls, |
84 | void *data, | 86 | void *data, |
85 | size_t size); | 87 | size_t size); |
86 | 88 | ||
87 | 89 | ||
88 | /** | 90 | /** |
89 | * Seek in the datasource. Use 'SEEK_CUR' for whence and 'pos' of 0 to | 91 | * Seek in the datasource. Use 'SEEK_CUR' for whence and 'pos' of 0 to |
90 | * obtain the current position in the file. | 92 | * obtain the current position in the file. |
91 | * | 93 | * |
92 | * @param cls must be a 'struct EXTRACTOR_Datasource' | 94 | * @param cls must be a 'struct EXTRACTOR_Datasource' |
93 | * @param pos position to seek (see 'man lseek')o | 95 | * @param pos position to seek (see 'man lseek')o |
94 | * @param whence how to see (absolute to start, relative, absolute to end) | 96 | * @param whence how to see (absolute to start, relative, absolute to end) |
@@ -97,20 +99,20 @@ EXTRACTOR_datasource_read_ (void *cls, | |||
97 | */ | 99 | */ |
98 | int64_t | 100 | int64_t |
99 | EXTRACTOR_datasource_seek_ (void *cls, | 101 | EXTRACTOR_datasource_seek_ (void *cls, |
100 | int64_t pos, | 102 | int64_t pos, |
101 | int whence); | 103 | int whence); |
102 | 104 | ||
103 | 105 | ||
104 | /** | 106 | /** |
105 | * Determine the overall size of the data source (after compression). | 107 | * Determine the overall size of the data source (after compression). |
106 | * | 108 | * |
107 | * @param cls must be a 'struct EXTRACTOR_Datasource' | 109 | * @param cls must be a 'struct EXTRACTOR_Datasource' |
108 | * @param force force computing the size if it is unavailable | 110 | * @param force force computing the size if it is unavailable |
109 | * @return overall file size, -1 on error or unknown | 111 | * @return overall file size, -1 on error or unknown |
110 | */ | 112 | */ |
111 | int64_t | 113 | int64_t |
112 | EXTRACTOR_datasource_get_size_ (void *cls, | 114 | EXTRACTOR_datasource_get_size_ (void *cls, |
113 | int force); | 115 | int force); |
114 | 116 | ||
115 | 117 | ||
116 | #endif | 118 | #endif |