This file is indexed.

/usr/include/claws-mail/addrquery.h is in libclaws-mail-dev 3.13.2-1ubuntu1.

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
 98
 99
100
101
102
103
104
105
106
107
/*
 * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
 * Copyright (C) 2003-2012 Match Grun and the Claws Mail team
 *
 * 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; either version 3 of the License, or
 * (at your option) any later version.
 *
 * 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, see <http://www.gnu.org/licenses/>.
 * 
 */

/*
 * Functions to define an address query (a request).
 */

#ifndef __ADDRQUERY_H__
#define __ADDRQUERY_H__

#include <glib.h>
#include <stdio.h>
#include <sys/time.h>
#include "addritem.h"

/* Query types */
#define ADDRQUERY_NONE  0
#define ADDRQUERY_LDAP  1

/* Search type */
typedef enum {
	ADDRSEARCH_NONE,
	ADDRSEARCH_DYNAMIC,
	ADDRSEARCH_EXPLICIT,
	ADDRSEARCH_LOCATE
} AddrSearchType;

/* Data structures */
typedef struct {
	gint           queryID;
	AddrSearchType searchType;
	gchar          *searchTerm;
	time_t         timeStart;
	void           ( *callBackEnd ) ( void * );
	void           ( *callBackEntry ) ( void * );
	GList          *queryList;
}
QueryRequest;

/* Some macros */
#define ADDRQUERY_OBJECT(obj)		((AddrQueryObject *)obj)
#define ADDRQUERY_TYPE(obj)		(ADDRQUERY_OBJECT(obj)->queryType)
#define ADDRQUERY_ID(obj)		(ADDRQUERY_OBJECT(obj)->queryID)
#define ADDRQUERY_SEARCHTYPE(obj)	(ADDRQUERY_OBJECT(obj)->searchType)
#define ADDRQUERY_NAME(obj)		(ADDRQUERY_OBJECT(obj)->queryName)
#define ADDRQUERY_RETVAL(obj)		(ADDRQUERY_OBJECT(obj)->retVal)
#define ADDRQUERY_FOLDER(obj)		(ADDRQUERY_OBJECT(obj)->folder)
#define ADDRQUERY_SEARCHVALUE(obj)	(ADDRQUERY_OBJECT(obj)->searchValue)

/* Generic address query (base class) */
typedef struct _AddrQueryObject AddrQueryObject;
struct _AddrQueryObject {
	gint           queryType;
	gint           queryID;
	AddrSearchType searchType;
	gchar          *queryName;
	gint           retVal;
	ItemFolder     *folder;		/* Reference to folder in cache */
	gchar          *searchValue;
};

/* Address search call back functions */
typedef gint ( AddrSearchCallbackEntry ) ( gpointer sender,
				  	   gint queryID,
					   GList *listEMail,
					   gpointer data );

typedef void ( AddrSearchCallbackEnd ) ( gpointer sender,
					 gint queryID,
					 gint status,
	       				 gpointer data );

/* Function prototypes */
QueryRequest *qryreq_create	( void );
void qryreq_set_search_type	( QueryRequest *req, const AddrSearchType value );
void qryreq_add_query		( QueryRequest *req, AddrQueryObject *aqo );

void qrymgr_initialize		( void );
void qrymgr_teardown		( void );
QueryRequest *qrymgr_add_request( const gchar *searchTerm,
				  void *callBackEnd,
				  void *callBackEntry );

QueryRequest *qrymgr_find_request( const gint queryID );
void qrymgr_delete_request	( const gint queryID );

#endif /* __ADDRQUERY_H__ */

/*
* End of Source.
*/