Added reference counting the SilcStack.
[runtime.git] / lib / silcutil / silcstream.c
index 7b8b08af36bc39ed014b98c59a952a2711261d77..5e01ad398ddde01047a1ddf9b71ebc6d4b51e589 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 2005 - 2006 Pekka Riikonen
+  Copyright (C) 2005 - 2008 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 
 */
 
-#include "silc.h"
+#include "silcruntime.h"
 
 typedef struct {
   SilcStreamOps *ops;
@@ -49,11 +49,11 @@ void silc_stream_destroy(SilcStream stream)
   h->ops->destroy(stream);
 }
 
-void silc_stream_set_notifier(SilcStream stream, SilcSchedule schedule,
-                             SilcStreamNotifier notifier, void *context)
+SilcBool silc_stream_set_notifier(SilcStream stream, SilcSchedule schedule,
+                                 SilcStreamNotifier notifier, void *context)
 {
   SilcStreamHeader h = stream;
-  h->ops->notifier(stream, schedule, notifier, context);
+  return h->ops->notifier(stream, schedule, notifier, context);
 }
 
 SilcSchedule silc_stream_get_schedule(SilcStream stream)