/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- * * Copyright (C) 2007 Richard Hughes * * 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. */ #ifndef __PK_PACKAGE_ID_H #define __PK_PACKAGE_ID_H #include G_BEGIN_DECLS typedef struct { gchar *name; gchar *version; gchar *arch; gchar *data; } PkPackageId; PkPackageId *pk_package_id_new (void); PkPackageId *pk_package_id_new_from_string (const gchar *package_id); PkPackageId *pk_package_id_new_from_list (const gchar *name, const gchar *version, const gchar *arch, const gchar *data); gchar *pk_package_id_build (const gchar *name, const gchar *version, const gchar *arch, const gchar *data); gchar *pk_package_id_to_string (PkPackageId *ident); gboolean pk_package_id_free (PkPackageId *ident); gboolean pk_package_id_check (const gchar *package_id); gboolean pk_package_id_equal (const gchar *tid1, const gchar *tid2); G_END_DECLS #endif /* __PK_PACKAGE_ID_H */