Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 99091 | Differences between
and this patch

Collapse All | Expand All

(-)openobex-apps-1.0.0/src/Makefile.am (-1 / +5 lines)
Lines 9-15 Link Here
9
		obex_put_common.c obex_put_common.h
9
		obex_put_common.c obex_put_common.h
10
10
11
11
12
bin_PROGRAMS = irxfer obex_tcp irobex_palm3 obex_test
12
bin_PROGRAMS = irxfer obex_tcp irobex_palm3 obex_test obexserver
13
13
14
obex_test_SOURCES = \
14
obex_test_SOURCES = \
15
	obex_test.c obex_test.h \
15
	obex_test.c obex_test.h \
Lines 19-24 Link Here
19
19
20
obex_test_LDADD = @OPENOBEX_LIBS@ @BLUETOOTH_LIBS@ libmisc.a
20
obex_test_LDADD = @OPENOBEX_LIBS@ @BLUETOOTH_LIBS@ libmisc.a
21
21
22
obexserver_SOURCES = obexserver.c
23
24
obexserver_LDADD = @OPENOBEX_LIBS@ libmisc.a
25
22
obex_tcp_SOURCES = obex_tcp.c
26
obex_tcp_SOURCES = obex_tcp.c
23
27
24
irxfer_SOURCES = irxfer.c
28
irxfer_SOURCES = irxfer.c
(-)openobex-apps-1.0.0/src/Makefile.in (-3 / +15 lines)
Lines 78-90 Link Here
78
libmisc_a_SOURCES =  		obex_io.c obex_io.h 		obex_put_common.c obex_put_common.h
78
libmisc_a_SOURCES =  		obex_io.c obex_io.h 		obex_put_common.c obex_put_common.h
79
79
80
80
81
bin_PROGRAMS = irxfer obex_tcp irobex_palm3 obex_test
81
bin_PROGRAMS = irxfer obex_tcp irobex_palm3 obex_test obexserver
82
82
83
obex_test_SOURCES =  	obex_test.c obex_test.h 	obex_test_client.c obex_test_client.h 	obex_test_server.c obex_test_server.h 	obex_test_cable.c obex_test_cable.h
83
obex_test_SOURCES =  	obex_test.c obex_test.h 	obex_test_client.c obex_test_client.h 	obex_test_server.c obex_test_server.h 	obex_test_cable.c obex_test_cable.h
84
84
85
85
86
obex_test_LDADD = @OPENOBEX_LIBS@ @BLUETOOTH_LIBS@ libmisc.a
86
obex_test_LDADD = @OPENOBEX_LIBS@ @BLUETOOTH_LIBS@ libmisc.a
87
87
88
obexserver_SOURCES = obexserver.c 
89
90
obexserver_LDADD = @OPENOBEX_LIBS@ libmisc.a
91
88
obex_tcp_SOURCES = obex_tcp.c
92
obex_tcp_SOURCES = obex_tcp.c
89
93
90
irxfer_SOURCES = irxfer.c
94
irxfer_SOURCES = irxfer.c
Lines 127-132 Link Here
127
obex_test_cable.o
131
obex_test_cable.o
128
obex_test_DEPENDENCIES =  libmisc.a
132
obex_test_DEPENDENCIES =  libmisc.a
129
obex_test_LDFLAGS = 
133
obex_test_LDFLAGS = 
134
obexserver_OBJECTS = obexserver.o 
135
obexserver_DEPENDENCIES = libmisc.a
136
obexserver_LDFLAGS = 
130
CFLAGS = @CFLAGS@
137
CFLAGS = @CFLAGS@
131
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
138
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
132
CCLD = $(CC)
139
CCLD = $(CC)
Lines 138-145 Link Here
138
145
139
TAR = tar
146
TAR = tar
140
GZIP_ENV = --best
147
GZIP_ENV = --best
141
SOURCES = $(libmisc_a_SOURCES) $(irxfer_SOURCES) $(obex_tcp_SOURCES) $(irobex_palm3_SOURCES) $(obex_test_SOURCES)
148
SOURCES = $(libmisc_a_SOURCES) $(irxfer_SOURCES) $(obex_tcp_SOURCES) $(irobex_palm3_SOURCES) $(obex_test_SOURCES) $(obexserver_SOURCES)
142
OBJECTS = $(libmisc_a_OBJECTS) $(irxfer_OBJECTS) $(obex_tcp_OBJECTS) $(irobex_palm3_OBJECTS) $(obex_test_OBJECTS)
149
OBJECTS = $(libmisc_a_OBJECTS) $(irxfer_OBJECTS) $(obex_tcp_OBJECTS) $(irobex_palm3_OBJECTS) $(obex_test_OBJECTS) $(obexserver_OBJECTS)
143
150
144
all: all-redirect
151
all: all-redirect
145
.SUFFIXES:
152
.SUFFIXES:
Lines 226-231 Link Here
226
	@rm -f obex_test
233
	@rm -f obex_test
227
	$(LINK) $(obex_test_LDFLAGS) $(obex_test_OBJECTS) $(obex_test_LDADD) $(LIBS)
234
	$(LINK) $(obex_test_LDFLAGS) $(obex_test_OBJECTS) $(obex_test_LDADD) $(LIBS)
228
235
236
obexserver: $(obexserver_OBJECTS) $(obexserver_DEPENDENCIES)
237
	@rm -f obexserver
238
	$(LINK) $(obexserver_LDFLAGS) $(obexserver_OBJECTS) $(LDADD) $(LIBS)
239
229
tags: TAGS
240
tags: TAGS
230
241
231
ID: $(HEADERS) $(SOURCES) $(LISP)
242
ID: $(HEADERS) $(SOURCES) $(LISP)
Lines 282-287 Link Here
282
	obex_test.h obex_test_cable.h
293
	obex_test.h obex_test_cable.h
283
obex_test_server.o: obex_test_server.c obex_io.h obex_test.h \
294
obex_test_server.o: obex_test_server.c obex_io.h obex_test.h \
284
	obex_test_cable.h obex_test_server.h
295
	obex_test_cable.h obex_test_server.h
296
obexserver.o: obexserver.c 
285
297
286
info-am:
298
info-am:
287
info: info-am
299
info: info-am
(-)openobex-apps-1.0.0/src/obexserver.c (+33 lines)
Line 0 Link Here
1
/* Simple OpenOBEX server for Bluez+OpenOBEX */
2
/* link with libmisc.a from OPENObex-apps and libopenobex from OpenOBEX */
3
/* venglin@freebsd.lublin.pl */
4
5
6
#include <stdio.h>
7
#include <stdlib.h>
8
9
#include <openobex/obex.h>
10
11
#define OBEX_PUSH_HANDLE	10
12
13
volatile int finished = 0;
14
obex_t *handle = NULL;
15
16
void obex_event(obex_t *handle, obex_object_t *object, int mode, int event, int obex_cmd, int obex_rsp);
17
18
int main(int argc, char **argv)
19
{
20
	obex_object_t *object;
21
22
	handle = OBEX_Init(OBEX_TRANS_BLUETOOTH, obex_event, 0);
23
24
	if (argc == 1)
25
	{
26
		BtOBEX_ServerRegister(handle, NULL, OBEX_PUSH_HANDLE);
27
		printf("Waiting for connection...\n");
28
		btobex_accept(handle);
29
30
		while (!finished)
31
			OBEX_HandleInput(handle, 1);
32
	}
33
}

Return to bug 99091