X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Flist.h;h=ee5d84bd8dc55dcb55f93af31afc29f5f067b01b;hb=37566b71e5598181de2ecdb390a8cab19786f4e1;hp=feb8b5d88fa77e89d893cb5fd5917c45e4f4c143;hpb=3122e6f075647374e7a98ae9501d100de8d004a9;p=babeltrace.git diff --git a/include/babeltrace/list.h b/include/babeltrace/list.h index feb8b5d8..ee5d84bd 100644 --- a/include/babeltrace/list.h +++ b/include/babeltrace/list.h @@ -1,21 +1,22 @@ -/* Copyright (C) 2002 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Ulrich Drepper , 2002. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, write to the Free - Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA - 02111-1307 USA. */ +/* + * Copyright (C) 2002 Free Software Foundation, Inc. + * This file is part of the GNU C Library. + * Contributed by Ulrich Drepper , 2002. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; only + * version 2.1 of the License. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ #ifndef _BT_LIST_H #define _BT_LIST_H 1 @@ -24,6 +25,9 @@ found in the Linux kernel headers to enable people familiar with the latter find their way in these sources as well. */ +#ifdef __cplusplus +extern "C" { +#endif /* Basic type for the double-link list. */ struct bt_list_head @@ -167,4 +171,8 @@ static inline void bt_list_replace_init(struct bt_list_head *old, BT_INIT_LIST_HEAD(old); } +#ifdef __cplusplus +} +#endif + #endif /* _BT_LIST_H */