mirror of
https://github.com/linux-msm/qdl.git
synced 2026-10-07 06:29:17 -07:00
The repository root had accumulated ~45 .c/.h files sitting directly next to the project files (meson.build, scripts/, tests/, docs). Move all sources under src/ and the public header to include/ so the top level reflects the shape of the project rather than its source file count. This commit is a pure git mv with no content changes, so git log --follow keeps working across the move. Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
27 lines
632 B
C
27 lines
632 B
C
/* SPDX-License-Identifier: BSD-3-Clause */
|
|
/*
|
|
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
*/
|
|
#ifndef __PATHBUF_H__
|
|
#define __PATHBUF_H__
|
|
|
|
#include <stdbool.h>
|
|
#include <limits.h>
|
|
#include <stddef.h>
|
|
|
|
struct pathbuf {
|
|
char buf[PATH_MAX];
|
|
size_t len;
|
|
};
|
|
|
|
void qdl_pathbuf_reset(struct pathbuf *path);
|
|
void qdl_pathbuf_dup(struct pathbuf *dst, const struct pathbuf *orig);
|
|
int qdl_pathbuf_push(struct pathbuf *path, const char *component);
|
|
const char *qdl_pathbuf_str(const struct pathbuf *path);
|
|
|
|
void qdl_pathbuf_dirname(struct pathbuf *path);
|
|
|
|
bool qdl_path_exists(const struct pathbuf *path);
|
|
|
|
#endif
|