aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-marshal-utils.h
blob: 324f32e6447d5a2ceecfcc456e6cb31c60c6c029 (plain) (blame)
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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* camel-maeshal-utils.h : marshal utils */

/* 
 *
 * Copyright (C) 1999 Bertrand Guiheneuf <Bertrand.Guiheneuf@aful.org> .
 *
 * 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 2 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, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA
 */



#ifndef CAMEL_MARSHAL_UTILS_H
#define CAMEL_MARSHAL_UTILS_H 1


#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus }*/

#include <gtk/gtk.h>


typedef void (*CamelFunc) ();

typedef void ( *CamelMarshal) (CamelFunc func,
                   GtkArg *args);





typedef struct {

    CamelMarshal marshal;
    guint n_params;
    GtkType  *params_type;

} CamelFuncDef;



typedef struct {
    CamelFuncDef *func_def;
    CamelFunc func;
    GtkArg  *params;
    gpointer user_data;
} CamelOp;


CamelFuncDef *
camel_func_def_new (CamelMarshal marshal, 
            guint n_params, 
            ...);


CamelOp *camel_op_new (CamelFuncDef *func_def);
void camel_op_free (CamelOp *op);
void camel_op_run (CamelOp *op);
void camel_op_run_and_free (CamelOp *op);
void camel_op_set_user_data (CamelOp *op, gpointer user_data);
gpointer camel_op_get_user_data (CamelOp *op);

CamelOp *camel_marshal_create_op (CamelFuncDef *func_def, CamelFunc func, ...);

/* marshallers */
void camel_marshal_NONE__POINTER_INT_POINTER (CamelFunc func, 
                          GtkArg *args);
void camel_marshal_NONE__POINTER_INT_POINTER_POINTER (CamelFunc func, 
                              GtkArg *args);
void camel_marshal_NONE__INT (CamelFunc func, 
                  GtkArg *args);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* CAMEL_MARSHAL_UTILS_H */

>2011-03-271-0/+1 * Register uid and gid for net/get_iplayerbf2011-03-091-0/+1 * - Register UID and GID for devel/jenkinslwhsu2011-03-071-0/+1 * - Register uid and gid for net/crtmpserversylvio2011-02-281-0/+1 * - Register uid and gid for net-mgmt/icingachinsan2011-02-241-0/+1 * - Register uid and gid for net/erlyvideomiwi2011-02-021-0/+1 * - register UID/GID 587 for assp user (port mail/assp)ohauer2011-01-061-0/+1 * - Move torrus user to next unoccupied slotpav2010-12-241-1/+1 * - Upgrade to USERS/GROUPSpav2010-12-231-0/+1 * - register UID/GID 542 for _flowd user (port net-mgmt/flowd)ohauer2010-12-211-0/+1 * Add the port of minidlna -- the DLNA-speaking service.mi2010-12-141-0/+1 * Dont declare ${sancp_flags} in command_args.wxs2010-12-131-0/+1 * - add radmind with uid/gid 506 for port sysutils/radmindohauer2010-11-281-0/+1 * . Add a port of the 2.x series of Dovecot:glewis2010-11-271-0/+1 * * Sets up a uhub UID and GID for the daemon to run as.stefan2010-11-111-0/+1 * Remove "freeswitch" user from "dahdi" group for a while.fjoe2010-11-081-1/+1 * Fix "dahdi" group gid.fjoe2010-11-071-1/+1 * Add "asterisk" user/group and "dahdi" group.fjoe2010-11-071-0/+2 * Add _tss and _pkcs11 to reserve for security/trousers andnork2010-11-071-0/+2 * Finally upgrade amanda-{server,client} to 3.2.0. Old 2.6.x waskuriyama2010-11-011-0/+1 * - add RC scriptswills2010-10-111-0/+1 * Archiveopteryx is an Internet mail server, optimised to supportashish2010-10-031-0/+1 * Update to 2010-07-R1bf2010-10-031-0/+1 * BackupPC is a high-performance, enterprise-grade system for backing up Linux,pgollucci2010-09-231-0/+1 * - Convert to USERS/GROUPSpgollucci2010-09-221-0/+1 * tWMS is a tiny WMS server written in Python and using tiles as aamdmi32010-09-081-0/+1 * Use the USERS/GROUPS mechanismlth2010-08-121-0/+1 * - Add user/group shellinabox with uid/gid 139jadawin2010-07-051-0/+1 * Add 'saned' user/group the Right Way.stefan2010-06-281-0/+1 * - Add activemq for new port net/activemqwen2010-06-121-0/+1 * Add net/freeswitch-core, part of a revamp to the freeswitch portsjpaetzel2010-06-121-0/+1 * - add members for meta1c meta1mdinoex2010-06-051-2/+2 * - Update to 0.7.3pav2010-05-141-0/+1 * Remove trailing ':' from fossy.wxs2010-04-301-1/+1 * Add trailing ':' to drizzle and fossywxs2010-04-301-2/+2 * - Added user and group for Drizzle database serverglarkin2010-04-291-0/+1 * - Reserve kumofs uid/gid.kuriyama2010-04-261-0/+1 * Minbif aims to use the libpurple library from the Pidgin projectbeat2010-04-151-0/+1 * - Add user and group mfs for MooseFS portwen2010-04-071-0/+1 * - reserver GID/UID 924 for upcomming mail/postpalsitetcu2010-03-131-0/+1 * Massive cleanup of the Munin ports:des2010-02-251-0/+1 * - Add user and group for audio/liquidsoapwen2010-02-011-0/+1 * - Update Wolfpack Empire to 4.3.23johans2009-12-281-0/+1 * - Reserve UID/GID 137 for audio/musicpdpav2009-12-071-0/+1 * - Prepare for add new port databases/mongodbwen2009-11-191-0/+1 * - Add 444 for callweaverpav2009-09-181-0/+1 * - Update to 0.8.5beat2009-09-181-0/+1 * - Add UID/GID:211 for devel/py-gitosisnivit2009-09-161-0/+1 * Add haldaemon with UID/GID 560.flz2009-09-071-0/+1 * Add UID and GID forgotten while adding net-mgmt/noc.bsam2009-08-181-0/+1 * Remove entries for security/trans-proxy-tor and security/dns-proxy-torerwin2009-08-161-2/+0 * Add prosody entries to UIDs & GIDs.vanilla2009-08-051-0/+1 * Register user/group "redis" for the port "databases/redis".skv2009-07-281-0/+1 * - Add fossy user/group for devel/fossology.alepulver2009-07-241-0/+1 * -Add transmission.mezz2009-06-201-0/+1 * - Add GID and UID for emulators/virtualbox.beat2009-06-181-0/+1 * - Add couchdb user and group.wxs2009-06-171-0/+1 * - Register net-mgmt/nefurafan2009-04-071-0/+1 * - Register uid and gid for mail/prayerrafan2009-03-171-0/+1 * Reflect the change of UID/GID of ejabberd.delphij2009-03-161-1/+1 * Rework on rc script for www/httptunnel.rafan2009-01-301-0/+1 * Register a fixed UID/GID for the user 'dhcpd' and use that instead of astefan2009-01-121-0/+1 * PLEASE WELCOME www/rt38pgollucci2008-12-271-0/+1 * - Take maintainershipglarkin2008-11-201-0/+1 * - Add UID and GID entries for net/rabbitmq.wxs2008-10-291-0/+1 * - Fixed left-over directory problemglarkin2008-09-091-0/+1 * - Update pgbouncer to 1.2.3mm2008-08-121-0/+1 * Reserve numbers for databases/frontbase user.edwin2008-06-131-0/+1 * Style fix, $FreeBSD$ line is a comment, so add a leading '#'.flz2008-05-201-1/+1 * Reserve UID and GID for irc/bitlbee.brix2008-05-201-0/+1 * - Add entries for irc/undernet-ircubeech2008-05-011-0/+1 * Reserve 814 for sysutils/puppet*pav2008-04-111-0/+1 * - Add GID and UID for www/openacs and www/openacs-dotlrnmm2008-04-031-0/+2 * - Add GID and UID for net/freeradius2mm2008-04-021-0/+1 * - Register gid for security/vlockrafan2008-03-311-0/+1 * - Add GID and UID for net-im/openfiremiwi2008-03-081-0/+1 * - Add missing :miwi2008-02-171-2/+2 * - add hobbit with id 280dinoex2008-01-281-0/+1 * - Reserve UID/GID 240 and 241 for aprsddb2008-01-241-0/+2 * Add 913 for _relayd.kuriyama2008-01-211-0/+1 * - Reserve uid/gid for net/iodine 0.4.1_1rafan2008-01-111-0/+1 * Add 911 for iserv (See PR ports/114017)edwin2007-09-071-0/+1