goa: Add missing linker flag (for real).
[platform/upstream/evolution-data-server.git] / libedataserver / e-operation-pool.h
1 /*
2  * e-operation-pool.h
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) version 3.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with the program; if not, see <http://www.gnu.org/licenses/>
16  *
17  *
18  * Copyright (C) 2011 Novell, Inc. (www.novell.com)
19  *
20  */
21
22 #if !defined (__LIBEDATASERVER_H_INSIDE__) && !defined (LIBEDATASERVER_COMPILATION)
23 #error "Only <libedataserver/libedataserver.h> should be included directly."
24 #endif
25
26 #ifndef E_OPERATION_POOL_H
27 #define E_OPERATION_POOL_H
28
29 #include <gio/gio.h>
30
31 /**
32  * EOperationPool:
33  *
34  * Contains only private data that should be read and manipulated using the
35  * functions below.
36  *
37  * Since: 3.2
38  **/
39 typedef struct _EOperationPool EOperationPool;
40
41 EOperationPool *e_operation_pool_new (guint max_threads, GFunc thread_func, gpointer user_data);
42 void            e_operation_pool_free (EOperationPool *pool);
43 guint32         e_operation_pool_reserve_opid (EOperationPool *pool);
44 void            e_operation_pool_release_opid (EOperationPool *pool, guint32 opid);
45 void            e_operation_pool_push (EOperationPool *pool, gpointer opdata);
46
47 #endif /* E_OPERATION_POOL_H */