~ubuntu-branches/ubuntu/trusty/gq/trusty

« back to all changes in this revision

Viewing changes to src/syntax.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2009-10-25 23:34:56 UTC
  • mfrom: (1.1.4 upstream) (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091025233456-i794n3yg2cff930j
Tags: 1.3.4-1
* QA upload.
  + Set maintainer to Debian QA Group <packages@qa.debian.org>.
* New upstream release. (Closes: #534705).
  + Does not segfault on amd64. (Closes: #444312).
  + Remove all existing patches and change patch system to quilt.
  + Replace dpatch build-dep with quilt.
* 01_desktop_file.diff - Remove encoding and bogus categories 
  from desktop file.
* Copy in config.{sub,guess} on configure, rm them on clean.
  + Add build-dep on autotools-dev.
* Make clean not ignore errors.
* Add copyright holders and version path to GPL (GPL-2).
* Update watch file to use SF redirector. (Closes: #449749).
* Bump debhelper build-dep and compat to 5.
* Bump Standards Version to 3.8.3.
  + Menu policy transition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
23
*/
24
24
 
25
 
/* $Id: syntax.h 955 2006-08-31 19:15:21Z herzi $ */
 
25
/* $Id$ */
26
26
 
27
27
#ifndef GQ_SYNTAX_H_INCLUDED
28
28
#define GQ_SYNTAX_H_INCLUDED
29
29
 
30
 
#include "formfill.h"
 
30
#include <glib/gmacros.h>
 
31
 
 
32
G_BEGIN_DECLS
 
33
 
 
34
typedef struct syntax_handler GqSyntax;
 
35
 
 
36
G_END_DECLS
 
37
 
 
38
#include "gq-formfill.h"
31
39
#include "gq-type-display.h"
32
40
 
 
41
G_BEGIN_DECLS
 
42
 
 
43
#define GQ_IS_SYNTAX(i) ((i) != NULL)
 
44
 
 
45
G_END_DECLS
 
46
 
33
47
/* This is not as generic as one could wish, but we have to somehow map
34
48
   syntaxes to our code... */
35
49
 
36
50
struct syntax_handler {
 
51
#warning "FIXME: make a GObject"
37
52
     const char *syntax_oid;
38
53
     const char *desc;
39
54
     int displaytype;
40
 
     int (*displayTypeFunc)(const char *attr, const char *syn_oid);
 
55
     int (*displayTypeFunc)(const char *attr);
41
56
     int must_binary;
42
57
};
43
58
 
59
74
void init_syntaxes(void);
60
75
 
61
76
/* Return a list of _display_type_handler objects selectable by the user */
62
 
GList *get_selectable_displaytypes();
 
77
GList *get_selectable_displaytypes(void);
63
78
 
64
79
/* Utility functions */
65
 
LDAPMod *bervalLDAPMod(struct formfill *form, int op, GList *values);
 
80
LDAPMod *bervalLDAPMod(GqFormfill *form, int op, GList *values);
66
81
 
67
82
GByteArray *identity(const char *val, int len);
68
83