root/include/crm/common/lists_internal.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright 2020-2022 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, const GList *items,
  30                             GCompareFunc cmp);
  31 
  32 #ifdef __cplusplus
  33 }
  34 #endif
  35 
  36 #endif

/* [previous][next][first][last][top][bottom][index][help] */