projects
/
runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added reference counting the SilcStack.
[runtime.git]
/
lib
/
silcutil
/
silcstream.c
diff --git
a/lib/silcutil/silcstream.c
b/lib/silcutil/silcstream.c
index 730ce55cb0ab742f75c819f20cd9dac0fc07f972..5e01ad398ddde01047a1ddf9b71ebc6d4b51e589 100644
(file)
--- a/
lib/silcutil/silcstream.c
+++ b/
lib/silcutil/silcstream.c
@@
-4,7
+4,7
@@
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2005 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
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 "silc
runtime
.h"
typedef struct {
SilcStreamOps *ops;
typedef struct {
SilcStreamOps *ops;
@@
-46,11
+46,11
@@
SilcBool silc_stream_close(SilcStream stream)
void silc_stream_destroy(SilcStream stream)
{
SilcStreamHeader h = stream;
void silc_stream_destroy(SilcStream stream)
{
SilcStreamHeader h = stream;
-
return
h->ops->destroy(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;
return h->ops->notifier(stream, schedule, notifier, context);
{
SilcStreamHeader h = stream;
return h->ops->notifier(stream, schedule, notifier, context);