This file is indexed.

/usr/include/swami/libswami/SwamiControlQueue.h is in libswami-dev 2.0.0+svn389-2.

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
89
90
91
92
/*
 * SwamiControlQueue.h - Swami control event queue
 * For queuing SwamiControl events
 *
 * Swami
 * Copyright (C) 1999-2010 Joshua "Element" Green <jgreen@users.sourceforge.net>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; version 2
 * of the License only.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA or point your web browser to http://www.gnu.org.
 */
#ifndef __SWAMI_CONTROL_QUEUE_H__
#define __SWAMI_CONTROL_QUEUE_H__

typedef struct _SwamiControlQueue SwamiControlQueue;
typedef struct _SwamiControlQueueClass SwamiControlQueueClass;

#include <glib.h>
#include <glib-object.h>
#include <libswami/SwamiLock.h>
#include <libswami/SwamiControl.h>
#include <libswami/SwamiControlEvent.h>

#define SWAMI_TYPE_CONTROL_QUEUE  (swami_control_queue_get_type ())
#define SWAMI_CONTROL_QUEUE(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWAMI_TYPE_CONTROL_QUEUE, \
   SwamiControlQueue))
#define SWAMI_CONTROL_QUEUE_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), SWAMI_TYPE_CONTROL_QUEUE, \
   SwamiControlQueueClass))
#define SWAMI_IS_CONTROL_QUEUE(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWAMI_TYPE_CONTROL_QUEUE))
#define SWAMI_IS_CONTROL_QUEUE_CLASS(obj) \
  (G_TYPE_CHECK_CLASS_TYPE ((obj), SWAMI_TYPE_CONTROL_QUEUE))


/**
 * SwamiControlQueueTestFunc:
 * @queue: The queue object
 * @control: The control
 * @event: The control event
 *
 * A callback function type used to test if an event should be added to a queue.
 * An example of its usage would be a GUI queue which could test to see if the
 * event is being sent within the GUI thread or not.
 *
 * Returns: Function should return %TRUE if event should be queued, %FALSE to
 *   send event immediately.
 */
typedef gboolean (* SwamiControlQueueTestFunc)(SwamiControlQueue *queue,
					       SwamiControl *control,
					       SwamiControlEvent *event);

/* control event queue */
struct _SwamiControlQueue
{
  SwamiLock parent_instance;	/* derived from SwamiLock */

  SwamiControlQueueTestFunc test_func;

  GList *list; /* list of queued events (struct in SwamiControlQueue.c) */
  GList *tail;			/* tail of the list */
};

/* control value change queue class */
struct _SwamiControlQueueClass
{
  SwamiLockClass parent_class;
};

GType swami_control_queue_get_type (void);

SwamiControlQueue *swami_control_queue_new (void);
void swami_control_queue_add_event (SwamiControlQueue *queue,
				    SwamiControl *control,
				    SwamiControlEvent *event);
void swami_control_queue_run (SwamiControlQueue *queue);
void swami_control_queue_set_test_func (SwamiControlQueue *queue,
					SwamiControlQueueTestFunc test_func);

#endif