muon/include/functions/modules/subprojects.h
Stone Tickle 43fd01492d delete some unused struct fields
found with cppcheck
2025-12-02 10:19:22 -05:00

26 lines
677 B
C

/*
* SPDX-FileCopyrightText: Stone Tickle <lattis@mochiro.moe>
* SPDX-License-Identifier: GPL-3.0-only
*/
#ifndef MUON_FUNCTIONS_MODULES_SUBPROJECTS_H
#define MUON_FUNCTIONS_MODULES_SUBPROJECTS_H
#include "lang/func_lookup.h"
#include "platform/timer.h"
struct subprojects_common_ctx {
struct arr handlers;
struct timer duration;
bool force, print;
obj *res;
};
typedef enum iteration_result (
*subprojects_foreach_cb)(struct workspace *wk, struct subprojects_common_ctx *ctx, const char *name);
bool subprojects_foreach(struct workspace *wk, obj list, struct subprojects_common_ctx *usr_ctx, subprojects_foreach_cb cb);
FUNC_REGISTER(module_subprojects);
#endif