From aa1c0ba9f8787fc3b1a1190103e394b0c1c95922 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 20 Nov 2006 09:10:23 +0000 Subject: * repo-add script - to add entries to a db file directly from package data (no PKGBUILD) * libalpm api changes - move from a _getinfo(p, WHAT_WE_WANT) scheme to a typesafe _get_what_we_want(p) scheme [not 100% complete yet] * some const correctness changes * removal of PM_* types in alpm.h in favor of the pm*_t types used throughout libalpm --- lib/libalpm/group.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/libalpm/group.h') diff --git a/lib/libalpm/group.h b/lib/libalpm/group.h index bb3de2a5..86562b10 100644 --- a/lib/libalpm/group.h +++ b/lib/libalpm/group.h @@ -21,18 +21,17 @@ #ifndef _ALPM_GROUP_H #define _ALPM_GROUP_H -#include "list.h" - +/* Groups */ #define GRP_NAME_LEN 256 -/* Groups structure */ -typedef struct __pmgrp_t { +#include "alpm.h" + +struct __pmgrp_t { char name[GRP_NAME_LEN]; pmlist_t *packages; /* List of strings */ -} pmgrp_t; +}; #define FREEGRP(p) do { if(p) { _alpm_grp_free(p); p = NULL; } } while(0) - #define FREELISTGRPS(p) _FREELIST(p, _alpm_grp_free) pmgrp_t *_alpm_grp_new(void); -- cgit v1.2.3-24-g4f1b