diff options
| author | Allusive_ <[email protected]> | 2023-08-01 09:00:18 +1000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-01 09:00:18 +1000 |
| commit | 0147e7dd165f837662a480938e2083a5ac707586 (patch) | |
| tree | 3e38624c86c7119703cddb524ac01278491c8a3f /src/c2.h | |
| parent | Add files via upload (diff) | |
| download | compfy-0147e7dd165f837662a480938e2083a5ac707586.tar.xz compfy-0147e7dd165f837662a480938e2083a5ac707586.zip | |
Add files via upload
Diffstat (limited to 'src/c2.h')
| -rw-r--r-- | src/c2.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/c2.h b/src/c2.h new file mode 100644 index 0000000..d6b1d37 --- /dev/null +++ b/src/c2.h @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: MIT +/* + * Compton - a compositor for X11 + * + * Based on `xcompmgr` - Copyright (c) 2003, Keith Packard + * + * Copyright (c) 2011-2013, Christopher Jeffrey + * See LICENSE-mit for more information. + * + */ + +#pragma once + +#include <stdbool.h> + +typedef struct _c2_lptr c2_lptr_t; +typedef struct session session_t; +struct managed_win; + +c2_lptr_t *c2_parse(c2_lptr_t **pcondlst, const char *pattern, void *data); + +c2_lptr_t *c2_free_lptr(c2_lptr_t *lp); + +bool c2_match(session_t *ps, const struct managed_win *w, const c2_lptr_t *condlst, void **pdata); + +bool c2_list_postprocess(session_t *ps, c2_lptr_t *list); |