2007-09-05 16:49:41 -07:00
|
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
|
|
|
*
|
|
|
|
* Copyright (C) 2007 Richard Hughes <richard@hughsie.com>
|
|
|
|
* Copyright (C) 2007 Ken VanDine <ken@vandine.org>
|
|
|
|
*
|
|
|
|
* Licensed under the GNU General Public License Version 2
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include <pk-backend.h>
|
2007-10-22 22:38:33 -07:00
|
|
|
#include <pk-backend-python.h>
|
2007-09-05 16:49:41 -07:00
|
|
|
|
2007-09-09 10:00:00 -07:00
|
|
|
/**
|
|
|
|
* backend_get_groups:
|
|
|
|
*/
|
|
|
|
static void
|
|
|
|
backend_get_groups (PkBackend *backend, PkEnumList *elist)
|
|
|
|
{
|
|
|
|
g_return_if_fail (backend != NULL);
|
|
|
|
pk_enum_list_append_multiple (elist,
|
|
|
|
PK_GROUP_ENUM_ACCESSIBILITY,
|
2007-09-27 12:11:15 -07:00
|
|
|
PK_GROUP_ENUM_ACCESSORIES,
|
|
|
|
PK_GROUP_ENUM_EDUCATION,
|
2007-09-09 10:00:00 -07:00
|
|
|
PK_GROUP_ENUM_GAMES,
|
2007-09-27 12:11:15 -07:00
|
|
|
PK_GROUP_ENUM_GRAPHICS,
|
|
|
|
PK_GROUP_ENUM_INTERNET,
|
|
|
|
PK_GROUP_ENUM_OFFICE,
|
|
|
|
PK_GROUP_ENUM_OTHER,
|
|
|
|
PK_GROUP_ENUM_PROGRAMMING,
|
|
|
|
PK_GROUP_ENUM_MULTIMEDIA,
|
2007-09-09 10:00:00 -07:00
|
|
|
PK_GROUP_ENUM_SYSTEM,
|
2007-09-09 12:27:56 -07:00
|
|
|
-1);
|
2007-09-09 10:00:00 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* backend_get_filters:
|
|
|
|
*/
|
|
|
|
static void
|
|
|
|
backend_get_filters (PkBackend *backend, PkEnumList *elist)
|
|
|
|
{
|
|
|
|
g_return_if_fail (backend != NULL);
|
|
|
|
pk_enum_list_append_multiple (elist,
|
2007-09-25 06:05:15 -07:00
|
|
|
/* PK_FILTER_ENUM_GUI, */
|
2007-09-25 12:27:50 -07:00
|
|
|
PK_FILTER_ENUM_INSTALLED,
|
|
|
|
/* PK_FILTER_ENUM_DEVELOPMENT, */
|
2007-09-09 12:27:56 -07:00
|
|
|
-1);
|
2007-09-09 10:00:00 -07:00
|
|
|
}
|
|
|
|
|
2007-09-05 16:49:41 -07:00
|
|
|
PK_BACKEND_OPTIONS (
|
2007-09-21 14:50:20 -07:00
|
|
|
"Conary", /* description */
|
2007-09-06 10:01:45 -07:00
|
|
|
"Ken VanDine <ken@vandine.org>", /* author */
|
|
|
|
NULL, /* initalize */
|
|
|
|
NULL, /* destroy */
|
2007-09-09 10:00:00 -07:00
|
|
|
backend_get_groups, /* get_groups */
|
|
|
|
backend_get_filters, /* get_filters */
|
2007-09-18 14:07:16 -07:00
|
|
|
NULL, /* cancel */
|
2007-10-05 12:53:14 -07:00
|
|
|
NULL, /* get_depends */
|
2007-11-08 20:27:26 -08:00
|
|
|
pk_backend_python_get_description, /* get_description */
|
2007-10-27 07:59:58 -07:00
|
|
|
NULL, /* get_files */
|
2007-09-25 06:05:15 -07:00
|
|
|
NULL, /* get_requires */
|
2007-09-10 13:18:29 -07:00
|
|
|
NULL, /* get_update_detail */
|
2007-10-22 22:38:33 -07:00
|
|
|
pk_backend_python_get_updates, /* get_updates */
|
|
|
|
pk_backend_python_install_package, /* install_package */
|
2007-09-21 08:45:54 -07:00
|
|
|
NULL, /* install_file */
|
2007-10-22 22:38:33 -07:00
|
|
|
pk_backend_python_refresh_cache, /* refresh_cache */
|
|
|
|
pk_backend_python_remove_package, /* remove_package */
|
2007-09-21 11:11:49 -07:00
|
|
|
NULL, /* resolve */
|
2007-10-04 07:00:05 -07:00
|
|
|
NULL, /* search_details */
|
2007-10-03 14:20:41 -07:00
|
|
|
NULL, /* rollback */
|
2007-09-06 10:01:45 -07:00
|
|
|
NULL, /* search_file */
|
|
|
|
NULL, /* search_group */
|
2007-10-22 22:38:33 -07:00
|
|
|
pk_backend_python_search_name, /* search_name */
|
|
|
|
pk_backend_python_update_package, /* update_package */
|
|
|
|
pk_backend_python_update_system, /* update_system */
|
2007-10-13 16:47:50 -07:00
|
|
|
NULL, /* get_repo_list */
|
|
|
|
NULL, /* repo_enable */
|
|
|
|
NULL /* repo_set_data */
|
2007-09-05 16:49:41 -07:00
|
|
|
);
|
|
|
|
|