summaryrefslogtreecommitdiff
path: root/python/pygupnp-igd.defs
blob: 8f758dc7f022192f7c49bbfeba5509439135f1be (plain)
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
108
(define-object Simple
  (in-module "GUPnPIgd")
  (parent "GObject")
  (c-name "GUPnPSimpleIgd")
  (gtype-id "GUPNP_TYPE_SIMPLE_IGD")
)

(define-object SimpleThread
  (in-module "GUPnPSimpleIgd")
  (parent "GUPnPSimpleIgd")
  (c-name "GUPnPSimpleIgdThread")
  (gtype-id "GUPNP_TYPE_SIMPLE_IGD_THREAD")
)

(define-enum Error
  (in-module "GUPnPSimpleIgd")
  (c-name "GUPnPSimpleIgdError")
  (gtype-id "GUPNP_TYPE_SIMPLE_IGD_ERROR")
  (values
    '("s" "GUPNP_SIMPLE_IGD_ERROR_EXTERNAL_ADDRESS")
  )
)
;; -*- scheme -*-
; object definitions ...
;; Enumerations and flags ...


;; From gupnp-simple-igd.h

(define-function error_quark
  (c-name "gupnp_simple_igd_error_quark")
  (return-type "GQuark")
)

(define-function get_type
  (c-name "gupnp_simple_igd_get_type")
  (return-type "GType")
)

(define-function new
  (c-name "gupnp_simple_igd_new")
  (is-constructor-of "GupnpSimpleIgd")
  (return-type "GUPnPSimpleIgd*")
)

(define-method add_port
  (of-object "GUPnPSimpleIgd")
  (c-name "gupnp_simple_igd_add_port")
  (return-type "none")
  (parameters
    '("const-gchar*" "protocol")
    '("guint16" "external_port")
    '("const-gchar*" "local_ip")
    '("guint16" "local_port")
    '("guint32" "lease_duration")
    '("const-gchar*" "description")
  )
)

(define-method remove_port
  (of-object "GUPnPSimpleIgd")
  (c-name "gupnp_simple_igd_remove_port")
  (return-type "none")
  (parameters
    '("const-gchar*" "protocol")
    '("guint" "external_port")
  )
)

(define-method delete_all_mappings
  (of-object "GUPnPSimpleIgd")
  (c-name "gupnp_simple_igd_delete_all_mappings")
  (return-type "gboolean")
)


;; -*- scheme -*-
; object definitions ...
;; Enumerations and flags ...


;; From gupnp-simple-igd-thread.h

(define-function thread_get_type
  (c-name "gupnp_simple_igd_thread_get_type")
  (return-type "GType")
)

(define-function thread_new
  (c-name "gupnp_simple_igd_thread_new")
  (is-constructor-of "GupnpSimpleIgdThread")
  (return-type "GUPnPSimpleIgdThread*")
)


;; -*- scheme -*-
; object definitions ...
;; Enumerations and flags ...


;; From gupnp-enum-types.h

(define-function error_get_type
  (c-name "gupnp_simple_igd_error_get_type")
  (return-type "GType")
)