1 /* Declarations to manage a list of processes. */ 2 3 /* 4 * Copyright (C) 2003-2006 IBM 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of the 9 * License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * General Public License for more details. 15 * 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 19 * 02111-1307, USA. 20 */ 21 22 #ifndef PROCLIST_H_ 23 #define PROCLIST_H_ 24 25 #include <sys/types.h> 26 27 struct proclist_item_t { 28 struct proclist_item_t *next; 29 pid_t pid; 30 char *name; 31 }; 32 33 struct proclist_t { 34 struct proclist_item_t *head; 35 }; 36 37 void add_to_proclist(struct proclist_t *list, struct proclist_item_t *item); 38 void remove_from_proclist(struct proclist_t *list, struct proclist_item_t *item); 39 40 #endif 41