Merge lp:~clint-fewbar/gearman-interface/gearman-universal-fix into lp:gearman-interface

Proposed by Clint Byrum
Status: Merged
Merged at revision: 54
Proposed branch: lp:~clint-fewbar/gearman-interface/gearman-universal-fix
Merge into: lp:gearman-interface
Diff against target: 176 lines (+1/-132)
4 files modified
interface/libgearman/universal.i (+0/-128)
interface/python/libgearman.i (+0/-1)
interface/ruby/libgearman.i (+1/-2)
interface/xml/libgearman.i (+0/-1)
To merge this branch: bzr merge lp:~clint-fewbar/gearman-interface/gearman-universal-fix
Reviewer Review Type Date Requested Status
Gearman-developers Pending
Review via email: mp+28896@code.launchpad.net

Description of the change

universal isn't included in the public API anymore at all, and so must be removed from the SWIG interface.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'interface/libgearman/universal.i'
2--- interface/libgearman/universal.i 2010-06-28 23:54:20 +0000
3+++ interface/libgearman/universal.i 1970-01-01 00:00:00 +0000
4@@ -1,128 +0,0 @@
5-/* -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
6- * vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
7- *
8- * gearman-interface: Interface Wrappers for Gearman
9- * Copyright (c) 2009 Monty Taylor
10- * All rights reserved.
11- *
12- * Redistribution and use in source and binary forms, with or without
13- * modification, are permitted provided that the following conditions are met:
14- *
15- * 1. Redistributions of source code must retain the above copyright
16- * notice, this list of conditions and the following disclaimer.
17- * 2. Redistributions in binary form must reproduce the above copyright
18- * notice, this list of conditions and the following disclaimer in the
19- * documentation and/or other materials provided with the distribution.
20- * 3. The name of the author may not be used to endorse or promote products
21- * derived from this software without specific prior written permission.
22- *
23- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
27- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
29- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
30- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
31- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
32- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34- */
35-
36-%rename(version) gearman_version;
37-%rename(bugreport) gearman_bugreport;
38-
39-const char *gearman_version(void);
40-const char *gearman_bugreport(void);
41-
42-
43-typedef struct gearman_universal_st {} Gearman;
44-
45-
46-%extend Gearman
47-{
48-
49- /* Initialize a library instance structure. */
50- Gearman()
51- {
52- return gearman_universal_create(NULL);
53- }
54-
55- /* Free a library instance structure. */
56- ~Gearman()
57- {
58- gearman_universal_free($self);
59- }
60-
61- /* Clone a library instance structure. */
62- Gearman *copy()
63- {
64- return gearman_universal_clone(NULL, $self);
65- }
66-
67- /* Return an error string for last library error encountered. */
68- const char *error()
69- {
70- return gearman_universal_error($self);
71- }
72-
73- /* Value of errno in the case of a GEARMAN_ERRNO return value. */
74- int errno()
75- {
76- return gearman_universal_errno($self);
77- }
78-
79- gearman_universal_options_t options()
80- {
81- return gearman_universal_options($self);
82- }
83-
84- void set_options(gearman_universal_options_t options)
85- {
86- gearman_universal_set_options($self, options);
87- }
88-
89- void add_options(gearman_universal_options_t options)
90- {
91- gearman_universal_add_options($self, options);
92- }
93-
94- void remove_options(gearman_universal_options_t options)
95- {
96- gearman_universal_remove_options($self, options);
97- }
98-
99- int timeout()
100- {
101- return gearman_universal_timeout($self);
102- }
103-
104- void set_timeout(int timeout)
105- {
106- gearman_universal_set_timeout($self, timeout);
107- }
108-
109- /**
110- * Set logging callback for gearman instance.
111- * @param gearman Gearman instance structure previously initialized with
112- * gearman_universal_create.
113- * @param log_fn Function to call when there is a logging message.
114- * @param log_fn_arg Argument to pass into the log callback function.
115- * @param verbose Verbosity level.
116- */
117-/*TODO:
118- void gearman_set_log_fn(gearman_universal_st *gearman, gearman_log_fn log_fn,
119- void *log_fn_arg, gearman_verbose_t verbose);
120-*/
121-
122- /**
123- * Set custom I/O event callbacks for a gearman structure.
124- */
125-/*TODO:
126- void gearman_set_event_watch_fn(gearman_universal_st *gearman,
127- gearman_event_watch_fn *event_watch,
128- void *event_watch_arg);
129-*/
130-
131-
132-};
133
134=== modified file 'interface/python/libgearman.i'
135--- interface/python/libgearman.i 2010-06-29 00:00:02 +0000
136+++ interface/python/libgearman.i 2010-06-30 14:53:26 +0000
137@@ -42,7 +42,6 @@
138
139 %buffer_input(const void *workload, size_t workload_size)
140
141-%include "interface/libgearman/universal.i"
142 %include "interface/libgearman/client.i"
143 %include "interface/libgearman/worker.i"
144 %include "interface/libgearman/job.i"
145
146=== modified file 'interface/ruby/libgearman.i'
147--- interface/ruby/libgearman.i 2010-06-29 00:00:02 +0000
148+++ interface/ruby/libgearman.i 2010-06-30 14:53:26 +0000
149@@ -40,7 +40,7 @@
150 }
151
152
153-%rename(Gearman) gearman_st;
154+/*%rename(Gearman) gearman_st;*/
155 %rename(Client) gearman_client_st;
156 %rename(Worker) gearman_worker_st;
157
158@@ -49,7 +49,6 @@
159 %include "interface/ruby/gearman_workload.i"
160 %include "interface/ruby/job_handle_out.i"
161
162-%include "interface/libgearman/universal.i"
163 %include "interface/libgearman/client.i"
164 %include "interface/libgearman/worker.i"
165 %include "interface/libgearman/job.i"
166
167=== modified file 'interface/xml/libgearman.i'
168--- interface/xml/libgearman.i 2010-06-28 23:54:20 +0000
169+++ interface/xml/libgearman.i 2010-06-30 14:53:26 +0000
170@@ -33,6 +33,5 @@
171
172 %include "interface/globals.i"
173
174-%include "interface/libgearman/universal.i"
175 %include "interface/libgearman/client.i"
176 %include "interface/libgearman/worker.i"

Subscribers

People subscribed via source and target branches

to all changes: