1 /* 2 * Copyright 2020 the Pacemaker project contributors 3 * 4 * The version control history for this file may have further details. 5 * 6 * This source code is licensed under the GNU Lesser General Public License 7 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY. 8 */ 9 10 #ifndef PCMK__LISTS_INTERNAL__H 11 #define PCMK__LISTS_INTERNAL__H 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 #include <glib.h> 18 19 /*! 20 * \internal 21 * \brief Return the list that is \p from - \p items 22 * 23 * \param[in] from Source list 24 * \param[in] items List containing items to remove from \p from 25 * \param[in] cmp Function used to compare list elements 26 * 27 * \return Newly allocated list 28 */ 29 GList* pcmk__subtract_lists(GList *from, GList *items, GCompareFunc cmp); 30 31 #ifdef __cplusplus 32 } 33 #endif 34 35 #endif