2 e6209546 2019-08-22 stsp * Copyright (c) 2019 Stefan Sperling <stsp@openbsd.org>
4 e6209546 2019-08-22 stsp * Permission to use, copy, modify, and distribute this software for any
5 e6209546 2019-08-22 stsp * purpose with or without fee is hereby granted, provided that the above
6 e6209546 2019-08-22 stsp * copyright notice and this permission notice appear in all copies.
8 e6209546 2019-08-22 stsp * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 e6209546 2019-08-22 stsp * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 e6209546 2019-08-22 stsp * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 e6209546 2019-08-22 stsp * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 e6209546 2019-08-22 stsp * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 e6209546 2019-08-22 stsp * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 e6209546 2019-08-22 stsp * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 e6209546 2019-08-22 stsp * A callback function which is invoked at cancellation points.
19 e6209546 2019-08-22 stsp * May return GOT_ERR_CANCELLED to abort the runing operation.
21 e6209546 2019-08-22 stsp typedef const struct got_error *(*got_cancel_cb)(void *);