exif-loader.h
Go to the documentation of this file.
/*
* Copyright (c) 2003 Lutz Mueller <lutz@users.sourceforge.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef LIBEXIF_EXIF_LOADER_H
#define LIBEXIF_EXIF_LOADER_H
#include <libexif/exif-data.h>
#include <libexif/exif-log.h>
#include <libexif/exif-mem.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct _ExifLoader ExifLoader;
ExifLoader *exif_loader_new (void);
ExifLoader *exif_loader_new_mem (ExifMem *mem);
void exif_loader_ref (ExifLoader *loader);
void exif_loader_unref (ExifLoader *loader);
void exif_loader_write_file (ExifLoader *loader, const char *fname);
unsigned char exif_loader_write (ExifLoader *loader, unsigned char *buf, unsigned int sz);
void exif_loader_reset (ExifLoader *loader);
ExifData *exif_loader_get_data (ExifLoader *loader);
void exif_loader_get_buf (ExifLoader *loader, const unsigned char **buf,
unsigned int *buf_size);
void exif_loader_log (ExifLoader *loader, ExifLog *log);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !defined(LIBEXIF_EXIF_LOADER_H) */
exif-data.h
Defines the ExifData type and the associated functions.
ExifData
struct _ExifData ExifData
Represents the entire EXIF data found in an image.
Definition exif-data.h:39
exif_loader_log
void exif_loader_log(ExifLoader *loader, ExifLog *log)
Set the log message object used by this ExifLoader.
Definition exif-loader.c:473
exif_loader_reset
void exif_loader_reset(ExifLoader *loader)
Free any data previously loaded and reset the ExifLoader to its newly-initialized state.
Definition exif-loader.c:421
ExifLoader
struct _ExifLoader ExifLoader
Data used by the loader interface.
Definition exif-loader.h:37
exif_loader_new
ExifLoader * exif_loader_new(void)
Allocate a new ExifLoader.
Definition exif-loader.c:360
exif_loader_write_file
void exif_loader_write_file(ExifLoader *loader, const char *fname)
Load a file into the given ExifLoader from the filesystem.
Definition exif-loader.c:123
exif_loader_get_data
ExifData * exif_loader_get_data(ExifLoader *loader)
Create an ExifData from the data in the loader.
Definition exif-loader.c:434
exif_loader_unref
void exif_loader_unref(ExifLoader *loader)
Decrease the refcount of the ExifLoader.
Definition exif-loader.c:412
exif_loader_new_mem
ExifLoader * exif_loader_new_mem(ExifMem *mem)
Allocate a new ExifLoader using the specified memory allocator.
Definition exif-loader.c:371
exif_loader_ref
void exif_loader_ref(ExifLoader *loader)
Increase the refcount of the ExifLoader.
Definition exif-loader.c:390
exif_loader_get_buf
void exif_loader_get_buf(ExifLoader *loader, const unsigned char **buf, unsigned int *buf_size)
Return the raw data read by the loader.
Definition exif-loader.c:450
exif_loader_write
unsigned char exif_loader_write(ExifLoader *loader, unsigned char *buf, unsigned int sz)
Load a buffer into the ExifLoader from a memory buffer.
Definition exif-loader.c:169
exif-log.h
Log message infrastructure.
ExifLog
struct _ExifLog ExifLog
State maintained by the logging interface.
Definition exif-log.h:36
exif-mem.h
Define the ExifMem data type and the associated functions.
ExifMem
struct _ExifMem ExifMem
ExifMem define a memory allocator.
Definition exif-mem.h:59