~ubuntu-branches/ubuntu/oneiric/postgresql-pljava/oneiric

« back to all changes in this revision

Viewing changes to src/C/include/pljava/type/UDT.h

  • Committer: Bazaar Package Importer
  • Author(s): Peter Eisentraut
  • Date: 2006-06-26 10:44:55 UTC
  • mfrom: (1.1.1 upstream) (3.1.1 edgy)
  • Revision ID: james.westby@ubuntu.com-20060626104455-135i9wosat2k8vvt
Tags: 1.3.0-1
* New upstream release (closes: #375199)
* Built for postgresql 8.1 (closes: #339641)
* Rebuilt for new libgcj library (closes: #369986)
* Updated copyright file
* Updated standards version
* Made use of cdbs simple patchsys

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2004, 2005, 2006 TADA AB - Taby Sweden
 
3
 * Distributed under the terms shown in the file COPYRIGHT
 
4
 * found in the root folder of this project or at
 
5
 * http://eng.tada.se/osprojects/COPYRIGHT.html
 
6
 *
 
7
 * @author Thomas Hallgren
 
8
 */
 
9
#ifndef __pljava_type_UDT_h
 
10
#define __pljava_type_UDT_h
 
11
 
 
12
#include "pljava/type/Type.h"
 
13
 
 
14
#ifdef __cplusplus
 
15
extern "C" {
 
16
#endif
 
17
 
 
18
/**************************************************************************
 
19
 * The UDT class extends the Type and adds the members necessary to
 
20
 * perform standard Postgres input/output and send/receive conversion.
 
21
 * 
 
22
 * @author Thomas Hallgren
 
23
 *
 
24
 **************************************************************************/
 
25
 
 
26
struct UDT_;
 
27
typedef struct UDT_* UDT;
 
28
 
 
29
extern Datum UDT_input(UDT udt, PG_FUNCTION_ARGS);
 
30
extern Datum UDT_output(UDT udt, PG_FUNCTION_ARGS);
 
31
extern Datum UDT_receive(UDT udt, PG_FUNCTION_ARGS);
 
32
extern Datum UDT_send(UDT udt, PG_FUNCTION_ARGS);
 
33
 
 
34
extern bool UDT_isScalar(UDT udt);
 
35
 
 
36
extern UDT UDT_registerUDT(jclass clazz, Oid typeId, Form_pg_type pgType, TupleDesc td, bool isJavaBasedScalar);
 
37
 
 
38
typedef Datum (*UDTFunction)(UDT udt, PG_FUNCTION_ARGS);
 
39
 
 
40
#ifdef __cplusplus
 
41
}
 
42
#endif
 
43
#endif