From owner-svn-soc-all@FreeBSD.ORG Thu Aug 15 10:22:15 2013 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 7024F306 for ; Thu, 15 Aug 2013 10:22:15 +0000 (UTC) (envelope-from mattbw@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4E4B8252B for ; Thu, 15 Aug 2013 10:22:15 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.7/8.14.7) with ESMTP id r7FAMF5K060813 for ; Thu, 15 Aug 2013 10:22:15 GMT (envelope-from mattbw@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.7/8.14.6/Submit) id r7FAMFlG060798 for svn-soc-all@FreeBSD.org; Thu, 15 Aug 2013 10:22:15 GMT (envelope-from mattbw@FreeBSD.org) Date: Thu, 15 Aug 2013 10:22:15 GMT Message-Id: <201308151022.r7FAMFlG060798@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to mattbw@FreeBSD.org using -f From: mattbw@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r255971 - in soc2013/mattbw/backend: . actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Aug 2013 10:22:15 -0000 Author: mattbw Date: Thu Aug 15 10:22:15 2013 New Revision: 255971 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=255971 Log: Add stubs for GetDepends and GetRequires. These aren't yet wired up to the main backend file, but are ready to build and fill in with code otherwise. Added: soc2013/mattbw/backend/actions/get_depends.c soc2013/mattbw/backend/actions/get_requires.c Modified: soc2013/mattbw/backend/Makefile soc2013/mattbw/backend/actions.h soc2013/mattbw/backend/actions/get_files.c Modified: soc2013/mattbw/backend/Makefile ============================================================================== --- soc2013/mattbw/backend/Makefile Thu Aug 15 10:18:36 2013 (r255970) +++ soc2013/mattbw/backend/Makefile Thu Aug 15 10:22:15 2013 (r255971) @@ -33,9 +33,11 @@ search.c \ utils.c SRCS+= \ + actions/get_depends.c \ actions/get_details.c \ actions/get_files.c \ actions/get_repo_list.c \ + actions/get_requires.c \ actions/get_update_detail.c \ actions/install_files.c \ actions/install_packages.c \ Modified: soc2013/mattbw/backend/actions.h ============================================================================== --- soc2013/mattbw/backend/actions.h Thu Aug 15 10:18:36 2013 (r255970) +++ soc2013/mattbw/backend/actions.h Thu Aug 15 10:22:15 2013 (r255971) @@ -28,9 +28,11 @@ * Each thread is implemented in its namesake C file, except simulations * which are stored with their non-simulated counterparts. */ +gboolean get_depends_thread(PkBackend *backend); gboolean get_details_thread(PkBackend *backend); gboolean get_files_thread(PkBackend *backend); gboolean get_repo_list_thread(PkBackend *backend); +gboolean get_requires_thread(PkBackend *backend); gboolean get_update_detail_thread(PkBackend *backend); gboolean install_files_thread(PkBackend *backend); gboolean install_packages_thread(PkBackend *backend); Added: soc2013/mattbw/backend/actions/get_depends.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2013/mattbw/backend/actions/get_depends.c Thu Aug 15 10:22:15 2013 (r255971) @@ -0,0 +1,36 @@ +/*- + * Copyright (C) 2013 Matt Windsor + * + * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ +#include /* assert */ +#include /* gboolean */ +#include "../pk-backend.h" /* PkBackend */ + +#include "../actions.h" /* Prototype */ + +/* + * The thread that performs a GetDepends operation. Should be invoked by the + * pk_backend_get_depends hook. + */ +gboolean +get_depends_thread(PkBackend *backend) +{ + + assert(backend != NULL); + return FALSE; +} Modified: soc2013/mattbw/backend/actions/get_files.c ============================================================================== --- soc2013/mattbw/backend/actions/get_files.c Thu Aug 15 10:18:36 2013 (r255970) +++ soc2013/mattbw/backend/actions/get_files.c Thu Aug 15 10:22:15 2013 (r255971) @@ -33,8 +33,8 @@ static bool emit(struct pkg *pkg, const gchar *id, struct query *q); /* - * The thread that performs a GetDetails operation. Should be invoked by the - * pk_backend_get_details hook. + * The thread that performs a GetFiles operation. Should be invoked by the + * pk_backend_get_files hook. */ gboolean get_files_thread(PkBackend *backend) Added: soc2013/mattbw/backend/actions/get_requires.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2013/mattbw/backend/actions/get_requires.c Thu Aug 15 10:22:15 2013 (r255971) @@ -0,0 +1,37 @@ +/*- + * Copyright (C) 2013 Matt Windsor + * + * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#include /* assert */ +#include /* gboolean */ +#include "../pk-backend.h" /* PkBackend */ + +#include "../actions.h" /* Prototype */ + +/* + * The thread that performs a GetRequires operation. Should be invoked by the + * pk_backend_get_requires hook. + */ +gboolean +get_requires_thread(PkBackend *backend) +{ + + assert(backend != NULL); + return FALSE; +}