A few final changes for the 3.0.6 release
[pacman.git] / lib / libalpm / group.h
blobc5366e644229b95abe8a8b6df869488d2ccd05dc
1 /*
2 * group.h
3 *
4 * Copyright (c) 2002-2006 by Judd Vinet <jvinet@zeroflux.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19 * USA.
21 #ifndef _ALPM_GROUP_H
22 #define _ALPM_GROUP_H
24 /* Groups */
25 #define GRP_NAME_LEN 256
27 #include "alpm.h"
29 struct __pmgrp_t {
30 char name[GRP_NAME_LEN];
31 alpm_list_t *packages; /* List of strings */
34 #define FREEGRP(p) do { if(p) { _alpm_grp_free(p); p = NULL; } } while(0)
35 #define FREELISTGRPS(p) _FREELIST(p, _alpm_grp_free)
37 pmgrp_t *_alpm_grp_new(void);
38 void _alpm_grp_free(void *data);
39 int _alpm_grp_cmp(const void *g1, const void *g2);
41 #endif /* _ALPM_GROUP_H */
43 /* vim: set ts=2 sw=2 noet: */