Angus Salkeld
b9f8ec34df
LOG: fix threaded logging.
...
This has been broken for a year - yikes!
Thanks to Voznesensky Vladimir for spotting it.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-06-14 11:01:52 +10:00
Angus Salkeld
ad05e6323d
ipc example: add -e (events) option
...
use events instead of responses
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-06-06 15:08:04 +10:00
Angus Salkeld
ca9fbe0246
example: make the priority uint8_t
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-05-28 21:51:13 +10:00
Angus Salkeld
70a9623a48
Remove message queues
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-05-28 13:41:04 +10:00
Angus Salkeld
a8405ab06d
blackbox: fix the print_from_file()
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-05-24 19:22:55 +10:00
Angus Salkeld
c56427e19e
LOG: accept NULL strings into the blackbox
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-05-24 14:16:54 +10:00
Angus Salkeld
257897e38a
Add benchmark option (-b) to examples/ipcclient
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-05-21 08:34:59 +10:00
Angus Salkeld
e3d8078f0a
Add some special commands into the ipc example
...
type "events" and the server will send 10 events.
type 'kill' into the client and this will simulate the server dying.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-30 15:49:42 +10:00
Angus Salkeld
ddcff095b5
Run ./Lindent in the examples directory
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-26 21:41:44 +10:00
Angus Salkeld
4bfe2fbd14
Add some debug code to the ipcclient example
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-26 21:36:49 +10:00
Angus Salkeld
ce1da1f28f
Get the example socket includes right.
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-04 09:51:28 +10:00
Jan Friesse
c3aeaa22c7
Add inet header to tcpclient example
...
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-03 21:23:18 +10:00
Angus Salkeld
1af214d91d
Try and improve the portability on bsd variants.
...
Also add a QB_IPC_NATIVE type that selects the best ipc type available.
Signed-off-by: Angus <angus@anguss-mac-mini>
2012-03-24 22:43:37 +11:00
Angus Salkeld
0d21be245b
ARRAY: save memory (in the bins array) and allow holes in the array
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-02-22 17:30:19 +11:00
Angus Salkeld
4dbfebbdbc
LOG: add stdout target
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-02-20 14:46:43 +11:00
Angus Salkeld
ff0d89721f
LOG: Add qb_log_filter_fn_set()
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-02-15 15:40:58 +11:00
Angus Salkeld
293813552b
Don't mix enums (QB_TRUE/TRUE)
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-02-08 22:00:49 +11:00
Angus Salkeld
42d20b5090
Get coverity to ignore this warning.
...
"Using uninitialized element of array"
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-02-03 14:42:25 +11:00
Angus Salkeld
0710b40cde
Change example code to use fgets instead of gets
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-02-03 14:37:37 +11:00
Angus Salkeld
b711f73ce7
LOG: add %N (log name) as a format option
...
This will log the name passed into qb_log_init()
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-01-09 16:02:53 +11:00
Angus Salkeld
aba197dd51
Fix two simple coverity warnings
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-01-05 16:43:04 +11:00
Angus Salkeld
5d8c96314e
Allow the array to automatically grow.
...
this makes it a bit friendlier to use, as
the user will not have to call qb_array_grow().
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-01-04 21:40:03 +11:00
Fabio M. Di Nitto
9f5d0aebbb
Fix some sparc test failures.
...
I (Angus) have changed some of Fabio's changes.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-12-22 13:56:20 +11:00
Angus Salkeld
30ba4cee83
make -rt configurable (not needed on mac)
...
Thanks to Andrew Beekhof
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-12-19 22:12:08 +11:00
Angus Salkeld
3f6d9e4c3c
examples: add example corosync data to mapnotify.c
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-12-18 22:52:29 +11:00
Angus Salkeld
edafc12823
MAP: add honza's example application.
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-12-14 00:32:43 +11:00
Angus Salkeld
dfe624f5a9
examples: add ipc client/server
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-10-23 22:40:26 +11:00
Angus Salkeld
b9dc96e40b
examples: Add tcpclient.c/tcpserver.c
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-10-23 22:40:26 +11:00
Angus Salkeld
e1e83aa746
Move simple-log.c to examples/
...
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2011-10-23 22:40:26 +11:00