1 /***** 2 * 3 * Copyright (C) 2014-2015 CS-SI. All Rights Reserved. 4 * Author: Yoann Vandoorselaere <yoannv@gmail.com> 5 * 6 * This file is part of the Prelude library. 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2, or (at your option) 11 * any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License along 19 * with this program; if not, write to the Free Software Foundation, Inc., 20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 21 * 22 *****/ 23 24 #ifndef _LIBPRELUDE_IDMEF_OBJECT_PRV_H 25 #define _LIBPRELUDE_IDMEF_OBJECT_PRV_H 26 27 #define IDMEF_OBJECT unsigned int _idmef_object_id 28 #define IDMEF_LINKED_OBJECT IDMEF_OBJECT; prelude_list_t _list 29 30 struct idmef_object { 31 IDMEF_OBJECT; 32 }; 33 34 struct idmef_linked_object { 35 IDMEF_OBJECT; 36 prelude_list_t _list; 37 }; 38 39 #define idmef_linked_object_get_object(object) \ 40 (void *) prelude_list_entry(object, struct idmef_linked_object, _list) 41 42 #endif /* _LIBPRELUDE_IDMEF_OBJECT_PRV_H */ 43