Files
drivers_framework/utils/include/hdf_cstring.h
T
yuanbo c5c47db55c support union device id
Signed-off-by: yuanbo <yuanbo@huawei.com>
2021-11-16 11:01:07 +08:00

33 lines
715 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);
char *HdfStringCopy(const char *src);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* HDF_CSTRING_H */