1 /* 2 * Copyright (C) 2012-2013 Red Hat, Inc. 3 * 4 * Licensed under the GNU Lesser General Public License Version 2.1 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 */ 20 21 #ifndef HY_REPO_H 22 #define HY_REPO_H 23 24 #include <glib.h> 25 26 G_BEGIN_DECLS 27 28 // hawkey 29 #include "hy-types.h" 30 31 enum _hy_repo_param_e { 32 HY_REPO_NAME = 0, 33 HY_REPO_MD_FN = 1, 34 HY_REPO_PRESTO_FN = 2, 35 HY_REPO_PRIMARY_FN = 3, 36 HY_REPO_FILELISTS_FN = 4, 37 HY_REPO_UPDATEINFO_FN = 5, 38 MODULES_FN = 6, 39 HY_REPO_OTHER_FN = 7 40 }; 41 42 HyRepo hy_repo_create(const char *name); 43 int hy_repo_get_cost(HyRepo repo); 44 int hy_repo_get_priority(HyRepo repo); 45 gboolean hy_repo_get_use_includes(HyRepo repo); 46 guint hy_repo_get_n_solvables(HyRepo repo); 47 void hy_repo_set_cost(HyRepo repo, int value); 48 void hy_repo_set_priority(HyRepo repo, int value); 49 void hy_repo_set_use_includes(HyRepo repo, gboolean enabled); 50 void hy_repo_set_string(HyRepo repo, int which, const char *str_val); 51 const char *hy_repo_get_string(HyRepo repo, int which); 52 void hy_repo_free(HyRepo repo); 53 54 G_END_DECLS 55 56 #endif /* HY_REPO_H */ 57