Commit Graph

1744 Commits

Author SHA1 Message Date
Angus Salkeld
79f35b512a Add a script for indenting the code (kernel formatting)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-06-10 21:34:17 +10:00
Angus Salkeld
bd2c07f739 Add a ringbuffer based off the one in logsys.
This ringbuffer is usable across processes.
the point is to use this for IPC to provide async
connections from client to server, but with inherient
flow control.

This still needs a bit of clean up, but committing now
for feedback and as it is quite functional.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-06-10 12:44:27 +10:00
Angus Salkeld
6b052988a9 man: document qblist.h better.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-31 15:22:12 +10:00
Angus Salkeld
6255c651df Fix the installation of libqb.pc
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-31 11:21:03 +10:00
Angus Salkeld
d925eb8630 Comment out the plugin tests as they break "make rpm"
I can't figure out a "nice" way of doing this.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-31 10:39:28 +10:00
Angus Salkeld
7cfb5e472f Roll all little libs into libqb.
This really makes things simpler (to produce and use).

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-27 11:34:58 +10:00
Angus Salkeld
5abc366c33 Make docs rules more maintainable
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-26 14:11:23 +10:00
Angus Salkeld
092da9a03f Add pkg-config files.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-26 13:49:48 +10:00
Angus Salkeld
a4af633d42 Fix the new inter-library dependancy.
http://old.nabble.com/relinking-error-td27796838.html

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-26 12:46:53 +10:00
Angus Salkeld
8ff8c7bfba Add __cplusplus externs
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-25 21:53:40 +10:00
Angus Salkeld
2e2e6761bf Fix make doxygen (for html output)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-25 20:30:37 +10:00
Angus Salkeld
95a4815f59 Fix manpage generation when builddir != srcdir
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-25 18:45:37 +10:00
Angus Salkeld
29cee5ec5e use new interanl logging functions
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-25 15:53:44 +10:00
Angus Salkeld
396fb4f375 Add a library logging function.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-25 15:07:54 +10:00
Angus Salkeld
5f7d3749c9 Add a util library with locking wrappers.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-25 15:06:41 +10:00
Angus Salkeld
caecbe6542 Re-license to LGPL 2.1
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-05-25 06:11:59 +10:00
Angus Salkeld
f0834863c6 fix "make distcheck"
I am sure that I am going to learn one day :(

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-29 21:24:21 +10:00
Angus Salkeld
6ba7251165 Add tezt programs to .gitignore
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-29 21:19:03 +10:00
Angus Salkeld
ea74429cd0 ipc: add non-blocking options to the bmc & bms apps
so to test blocking IPC
bmc
bms
to test non-blocking IPC
bmc -n
bms -n

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>

Conflicts:

	tests/bmc.c
2010-04-29 14:48:50 +10:00
Angus Salkeld
74a7a49354 ipc: add a non-blocking send function.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-29 14:47:42 +10:00
Angus Salkeld
e163121d02 ipc: add Steve's benchmark test programs
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-29 11:40:38 +10:00
Angus Salkeld
3eb313a848 ipc: add common types to qbipc_common.h
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-29 11:23:35 +10:00
Angus Salkeld
e9467c988c ipc: remove uneccessary version compatibilty
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-29 11:22:45 +10:00
Angus Salkeld
eb73d7da76 check_plugin: Add -rdynamic to check program
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-16 12:01:19 +10:00
Angus Salkeld
9e821d85e7 check_hash: fix test must be run in one test case.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-16 11:43:21 +10:00
Angus Salkeld
e394431ed4 hash: improve the error handling in key_set()
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-16 11:42:31 +10:00
Angus Salkeld
40f235a889 libtool and code re-structure
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-15 23:25:29 +10:00
Angus Salkeld
c6134b367c add a unit test for hash & cleanup.
Fix make distcheck
    Add qbhash.h to the makefiles
    Fix make rpm.
    Make sure the makefiles are generatd for hash

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-15 12:19:08 +10:00
Steven Dake
82e984fe38 Add an initial implementation of a hash table.
The hash table implementation is somewhat unique in that I plan to add graph
functionality to allow hash entries to be linked between other hash
entries to provide a mechanism to structure data within a hash table.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-04-15 08:00:56 +10:00
Angus Salkeld
b64457e19e add logsys from corosync.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-20 21:40:03 +11:00
Angus Salkeld
2bea1f4f65 Add wthread & queue.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-20 21:23:19 +11:00
Angus Salkeld
428003888a add ipcs from corosync
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-19 15:04:21 +11:00
Angus Salkeld
14db8db928 clean up lib.versions files
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-19 14:42:32 +11:00
Angus Salkeld
ceff27f370 Add ipcc from corosync
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-19 14:42:25 +11:00
Angus Salkeld
a359bea59f tweek the .gitignore
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-19 14:36:44 +11:00
Angus Salkeld
c7e93f2f5c add the plugin library.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-19 14:36:04 +11:00
Angus Salkeld
3b8ba3ba5d tsafe: replace _XOPEN_SOURCE with HAVE_(function)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-19 14:33:02 +11:00
Angus Salkeld
2c7484a1af remove ipc so from makefiles
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-19 14:32:49 +11:00
Angus Salkeld
b503a98acf Added qb_ prefix onto public functions/types.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-19 14:28:22 +11:00
Angus Salkeld
1aee5e128b Add timer.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-19 14:25:35 +11:00
Angus Salkeld
6014bfe580 Add spec file
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-19 14:19:43 +11:00
Angus Salkeld
81facf8267 Add poll, list & tlist
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-11 15:54:03 +11:00
Angus Salkeld
50bcb27284 Add handle database.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-11 14:52:57 +11:00
Angus Salkeld
69d77500df Initial Commit.
-autotools build system
-tsafe

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2010-03-11 14:19:39 +11:00