Files
qdl/src/pathbuf.h
T
Igor Opaniuk 9f0a50bc4b tree: reorganize sources
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>
2026-06-20 14:47:46 -05:00

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