00001 00002 /* 00003 * Copyright 2008 Red Hat Inc., Durham, North Carolina. 00004 * All Rights Reserved. 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 * Authors: 00021 * "Pierre Chifflier <chifflier@edenwall.com>" 00022 */ 00023 00024 00025 #ifndef __STUB_PROBE 00026 #ifndef __DPKGINFO_HELPER__ 00027 #define __DPKGINFO_HELPER__ 00028 00029 00030 #ifdef __cplusplus 00031 extern "C" { 00032 #endif 00033 00034 struct dpkginfo_reply_t { 00035 char *name; 00036 char *arch; 00037 char *epoch; 00038 char *release; 00039 char *version; 00040 char *evr; 00041 }; 00042 00043 int dpkginfo_init(); 00044 int dpkginfo_fini(); 00045 00046 struct dpkginfo_reply_t * dpkginfo_get_by_name(const char *name, int *err); 00047 00048 void * dpkginfo_free_reply(struct dpkginfo_reply_t *reply); 00049 00050 #ifdef __cplusplus 00051 } 00052 #endif 00053 00054 #endif /* __DPKGINFO_HELPER__ */ 00055 #endif /* __STUB_PROBE */