/usr/include/caja-actions/na-timeout.h is in caja-actions-dev 1.8.0+dfsg1-1build1.
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 93 94 95 96 97 | /*
* Caja-Actions
* A Caja extension which offers configurable context menu actions.
*
* Copyright (C) 2005 The MATE Foundation
* Copyright (C) 2006-2008 Frederic Ruaudel and others (see AUTHORS)
* Copyright (C) 2009-2012 Pierre Wieser and others (see AUTHORS)
*
* Caja-Actions 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; either version 2 of
* the License, or (at your option) any later version.
*
* Caja-Actions 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 Caja-Actions; see the file COPYING. If not, see
* <http://www.gnu.org/licenses/>.
*
* Authors:
* Frederic Ruaudel <grumz@grumz.net>
* Rodrigo Moya <rodrigo@mate-db.org>
* Pierre Wieser <pwieser@trychlos.org>
* ... and many others (see AUTHORS)
*/
#ifndef __CAJA_ACTIONS_API_NA_TIMEOUT_H__
#define __CAJA_ACTIONS_API_NA_TIMEOUT_H__
/**
* SECTION: timeout
* @title: NATimeout
* @short_description: The NATimeout Structure
* @include: caja-actions/na-timeout.h
*
* The NATimeout structure is a convenience structure to manage timeout
* functions.
*
* Since: 3.1
*/
#include <glib-object.h>
G_BEGIN_DECLS
/**
* NATimeoutFunc:
* @user_data: data to be passed to the callback function.
*
* Prototype of the callback function.
*
* Since: 3.1
*/
typedef void ( *NATimeoutFunc )( void *user_data );
/**
* NATimeout:
* @timeout: (i) timeout configurable parameter (ms)
* @handler: (i) handler function
* @user_data: (i) user data
*
* This structure let the user (i.e. the code which uses it) manage functions
* which should only be called after some time of icactivity, which is typically
* the case of 'item-change' handlers.
*
* The structure is supposed to be initialized at construction time with
* @timeout in milliseconds, @handler and @user_data input parameters.
* The private data should be set to %NULL.
*
* Such a structure must be allocated for each managed event.
*
* When an event is detected, the na_timeout_event() function must be called
* with this structure. The function makes sure that the @handler callback
* will be triggered as soon as no event will be recorded after @timeout
* milliseconds of icactivity.
*
* Since: 3.1
*/
typedef struct {
/*< public >*/
guint timeout;
NATimeoutFunc handler;
gpointer user_data;
/*< private >*/
GTimeVal last_time;
guint source_id;
}
NATimeout;
void na_timeout_event( NATimeout *timeout );
G_END_DECLS
#endif /* __CAJA_ACTIONS_API_NA_TIMEOUT_H__ */
|