Browse code

tls: fix unregistered rpc commands

In the process of merging the tls modules with some k tls PVs the
module interface was changed, leaving the rpc functions
un-registered (and hence unaccessible).

Andrei Pelinescu-Onciul authored on 26/05/2010 13:48:59
Showing 1 changed files
... ...
@@ -56,6 +56,7 @@
56 56
 #include "../../timer.h" /* ticks_t */
57 57
 #include "../../tls_hooks.h"
58 58
 #include "../../ut.h"
59
+#include "../../rpc_lookup.h"
59 60
 #include "tls_init.h"
60 61
 #include "tls_server.h"
61 62
 #include "tls_domain.h"
... ...
@@ -376,6 +377,11 @@ static int mod_init(void)
376 377
 
377 378
 	register_tls_hooks(&tls_h);
378 379
 	register_select_table(tls_sel);
380
+	/* register the rpc interface */
381
+	if (rpc_register_array(tls_rpc)!=0) {
382
+		LOG(L_ERR, "failed to register RPC commands\n");
383
+		goto error;
384
+	}
379 385
 
380 386
 	 /* if (init_tls() < 0) return -1; */
381 387