/usr/include/sfi/sfiustore.h is in libbse-dev 0.7.4-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | /* SFI - Synthesis Fusion Kit Interface
* Copyright (C) 2002 Tim Janik
*
* 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; either
* version 2.1 of the License, or (at your option) any later version.
*
* 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.
*
* A copy of the GNU Lesser General Public License should ship along
* with this library; if not, see http://www.gnu.org/copyleft/.
*/
#ifndef __SFI_USTORE_H__
#define __SFI_USTORE_H__
#include <sfi/sfitypes.h>
G_BEGIN_DECLS
/* --- typedefs --- */
/* typedef struct _SfiUStore SfiUStore; */
/* typedef struct _SfiUPool SfiUPool; */
typedef gboolean (*SfiUStoreForeach) (gpointer data,
gulong unique_id,
gpointer value);
typedef gboolean (*SfiUPoolForeach) (gpointer data,
gulong unique_id);
typedef gboolean (*SfiPPoolForeach) (gpointer data,
gpointer pointer);
/* --- unique ID store --- */
SfiUStore* sfi_ustore_new (void);
gpointer sfi_ustore_lookup (SfiUStore *store,
gulong unique_id);
void sfi_ustore_insert (SfiUStore *store,
gulong unique_id,
gpointer value);
void sfi_ustore_remove (SfiUStore *store,
gulong unique_id);
void sfi_ustore_foreach (SfiUStore *store,
SfiUStoreForeach foreach,
gpointer data);
void sfi_ustore_destroy (SfiUStore *store);
/* --- unique ID pool --- */
SfiUPool* sfi_upool_new (void);
gboolean sfi_upool_lookup (SfiUPool *pool,
gulong unique_id);
void sfi_upool_set (SfiUPool *pool,
gulong unique_id);
void sfi_upool_unset (SfiUPool *pool,
gulong unique_id);
void sfi_upool_foreach (SfiUPool *pool,
SfiUPoolForeach foreach,
gpointer data);
void sfi_upool_destroy (SfiUPool *pool);
gulong* sfi_upool_list (SfiUPool *pool,
guint *n_ids);
/* --- pointer pool --- */
SfiPPool* sfi_ppool_new (void);
gboolean sfi_ppool_lookup (SfiPPool *pool,
gpointer unique_ptr);
void sfi_ppool_set (SfiPPool *pool,
gpointer unique_ptr);
void sfi_ppool_unset (SfiPPool *pool,
gpointer unique_ptr);
void sfi_ppool_foreach (SfiPPool *pool,
SfiPPoolForeach foreach,
gpointer data);
GSList* sfi_ppool_slist (SfiPPool *pool);
void sfi_ppool_destroy (SfiPPool *pool);
G_END_DECLS
#endif /* __SFI_USTORE_H__ */
/* vim:set ts=8 sts=2 sw=2: */
|