ssa: avoid duplicate logic in simplify_instr
[ajla.git] / resolver.h
blobc1b1ee060af79b107b2d7def8dfc4684f8f0cd75
1 /*
2 * Copyright (C) 2024 Mikulas Patocka
4 * This file is part of Ajla.
6 * Ajla is free software: you can redistribute it and/or modify it under the
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, either version 3 of the License, or (at your option) any later
9 * version.
11 * Ajla is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13 * A PARTICULAR PURPOSE. See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along with
16 * Ajla. If not, see <https://www.gnu.org/licenses/>.
19 #ifndef AJLA_RESOLVER_H
20 #define AJLA_RESOLVER_H
22 #include "os.h"
24 bool resolver_resolve(char *name, int port, handle_t p, ajla_error_t *err);
25 bool resolver_resolve_reverse(char *addr, size_t addrlen, handle_t p, ajla_error_t *err);
27 void resolver_init(void);
28 void resolver_done(void);
30 #endif