Page MenuHomePhabricator

libxmount_morphing_combine.h
No OneTemporary

Size
3 KB
Referenced Files
None
Subscribers
None

libxmount_morphing_combine.h

/*******************************************************************************
* xmount Copyright (c) 2008-2016 by Gillen Daniel <gillen.dan@pinguin.lu> *
* *
* This program is free software: you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the Free *
* Software Foundation, either version 3 of the License, or (at your option) *
* any later version. *
* *
* This program is distributed in the hope that it will be useful, but WITHOUT *
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
* more details. *
* *
* You should have received a copy of the GNU General Public License along with *
* this program. If not, see <http://www.gnu.org/licenses/>. *
*******************************************************************************/
#ifndef LIBXMOUNT_MORPHING_COMBINE_H
#define LIBXMOUNT_MORPHING_COMBINE_H
/*******************************************************************************
* Enums, type defs, etc...
******************************************************************************/
enum {
COMBINE_OK=0,
COMBINE_MEMALLOC_FAILED,
COMBINE_CANNOT_GET_IMAGECOUNT,
COMBINE_CANNOT_GET_IMAGESIZE,
COMBINE_READ_BEYOND_END_OF_IMAGE,
COMBINE_CANNOT_READ_DATA
};
typedef struct s_CombineHandle {
uint8_t debug;
uint64_t input_images_count;
pts_LibXmountMorphingInputFunctions p_input_functions;
uint64_t morphed_image_size;
} ts_CombineHandle, *pts_CombineHandle;
/*******************************************************************************
* Forward declarations
******************************************************************************/
static int CombineCreateHandle(void **pp_handle,
const char *p_format,
uint8_t debug);
static int CombineDestroyHandle(void **pp_handle);
static int CombineMorph(void *p_handle,
pts_LibXmountMorphingInputFunctions p_input_functions);
static int CombineSize(void *p_handle,
uint64_t *p_size);
static int CombineRead(void *p_handle,
char *p_buf,
off_t offset,
size_t count,
size_t *p_read);
static int CombineOptionsHelp(const char **pp_help);
static int CombineOptionsParse(void *p_handle,
uint32_t options_count,
const pts_LibXmountOptions *pp_options,
const char **pp_error);
static int CombineGetInfofileContent(void *p_handle,
const char **pp_info_buf);
static const char* CombineGetErrorMessage(int err_num);
static void CombineFreeBuffer(void *p_buf);
#endif // LIBXMOUNT_MORPHING_COMBINE_H

File Metadata

Mime Type
text/x-c
Expires
Thu, Oct 24, 1:14 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1142283
Default Alt Text
libxmount_morphing_combine.h (3 KB)

Event Timeline