1 /* Copyright (c) 2014, Vsevolod Stakhov
2  * All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are met:
6  *       * Redistributions of source code must retain the above copyright
7  *         notice, this list of conditions and the following disclaimer.
8  *       * Redistributions in binary form must reproduce the above copyright
9  *         notice, this list of conditions and the following disclaimer in the
10  *         documentation and/or other materials provided with the distribution.
11  *
12  * THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY
13  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15  * DISCLAIMED. IN NO EVENT SHALL AUTHOR BE LIABLE FOR ANY
16  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
17  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
18  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
19  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
21  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22  */
23 
24 #include "binary.h"
25 
26 struct pkg_repo_ops pkg_repo_binary_ops = {
27 	.type = "binary",
28 	.init = pkg_repo_binary_init,
29 	.access = pkg_repo_binary_access,
30 	.open = pkg_repo_binary_open,
31 	.create = pkg_repo_binary_create,
32 	.close = pkg_repo_binary_close,
33 	.update = pkg_repo_binary_update,
34 	.query = pkg_repo_binary_query,
35 	.shlib_provided = pkg_repo_binary_shlib_provide,
36 	.shlib_required = pkg_repo_binary_shlib_require,
37 	.provided = pkg_repo_binary_provide,
38 	.required = pkg_repo_binary_require,
39 	.search = pkg_repo_binary_search,
40 	.fetch_pkg = pkg_repo_binary_fetch,
41 	.mirror_pkg = pkg_repo_binary_mirror,
42 	.get_cached_name = pkg_repo_binary_get_cached_name,
43 	.ensure_loaded = pkg_repo_binary_ensure_loaded,
44 	.stat = pkg_repo_binary_stat
45 };
46