summaryrefslogtreecommitdiffstats
path: root/src/opt.h
blob: 4aac1299dffcddaa83ba3324318c3ea1808b18f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright © Tavian Barnes <tavianator@tavianator.com>
// SPDX-License-Identifier: 0BSD

/**
 * Optimization.
 */

#ifndef BFS_OPT_H
#define BFS_OPT_H

struct bfs_ctx;

/**
 * Apply optimizations to the command line.
 *
 * @param ctx
 *         The bfs context to optimize.
 * @return
 *         0 if successful, -1 on error.
 */
int bfs_optimize(struct bfs_ctx *ctx);

#endif // BFS_OPT_H