/* * Copyright (C) 2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef LIBEXIF_MNOTE_HUAWEI_ENTRY_H #define LIBEXIF_MNOTE_HUAWEI_ENTRY_H #include #include #include typedef struct _MnoteHuaweiEntry MnoteHuaweiEntry; typedef struct _ExifMnoteDataHuawei ExifMnoteDataHuawei; struct _MnoteHuaweiEntry { MnoteHuaweiTag tag; ExifFormat format; unsigned long components; unsigned char *data; unsigned int size; ExifByteOrder order; void *md; void *parent_md; ExifMem *mem; }; #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ char *mnote_huawei_entry_get_value (MnoteHuaweiEntry *entry, char *v, unsigned int maxlen); int mnote_huawei_entry_set_value(MnoteHuaweiEntry *entry, const char *v, int strlen); MnoteHuaweiEntry *mnote_huawei_entry_new(ExifMnoteData *n); void mnote_huawei_entry_replace_mem(MnoteHuaweiEntry *e, ExifMem *mem); void mnote_huawei_entry_free_content(MnoteHuaweiEntry *e); void mnote_huawei_entry_free_contour(MnoteHuaweiEntry *e); void mnote_huawei_entry_free(MnoteHuaweiEntry *e); void mnote_huawei_entry_initialize(MnoteHuaweiEntry *e, MnoteHuaweiTag tag, ExifByteOrder order); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* !defined(LIBEXIF_MNOTE_HUAWEI_ENTRY_H) */