mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-07-22 12:15:55 -04:00
32 lines
677 B
C
32 lines
677 B
C
/*
|
|
* Copyright (c) 2020-2021 Huawei Device Co., Ltd.
|
|
*
|
|
* HDF is dual licensed: you can use it either under the terms of
|
|
* the GPL, or the BSD license, at your option.
|
|
* See the LICENSE file in the root of this repository for complete details.
|
|
*/
|
|
|
|
#ifndef HDF_CSTRING_H
|
|
#define HDF_CSTRING_H
|
|
|
|
#include "hdf_base.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
struct HdfCString {
|
|
int size;
|
|
char value[0];
|
|
};
|
|
|
|
uint32_t HdfStringMakeHashKey(const char *key, uint32_t mask);
|
|
struct HdfCString *HdfCStringObtain(const char *str);
|
|
void HdfCStringRecycle(struct HdfCString *inst);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* HDF_CSTRING_H */
|