mirror of
https://git.sr.ht/~lattis/muon
synced 2026-01-29 19:04:20 +00:00
26 lines
677 B
C
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
|