MINOR: stream-int: rename si_applet_{want|stop|cant}_{get|put}
It doesn't make sense to limit this code to applets, as any stream
interface can use it. Let's rename it by simply dropping the "applet_"
part of the name. No other change was made except updating the comments.
diff --git a/src/map.c b/src/map.c
index d94b0f2..859ad89 100644
--- a/src/map.c
+++ b/src/map.c
@@ -381,7 +381,7 @@
*/
LIST_ADDQ(&elt->back_refs, &appctx->ctx.map.bref.users);
HA_SPIN_UNLOCK(PATREF_LOCK, &appctx->ctx.map.ref->lock);
- si_applet_cant_put(si);
+ si_cant_put(si);
return 0;
}
@@ -410,7 +410,7 @@
chunk_reset(&trash);
chunk_appendf(&trash, "# id (file) description\n");
if (ci_putchk(si_ic(si), &trash) == -1) {
- si_applet_cant_put(si);
+ si_cant_put(si);
return 0;
}
@@ -440,7 +440,7 @@
/* let's try again later from this stream. We add ourselves into
* this stream's users so that it can remove us upon termination.
*/
- si_applet_cant_put(si);
+ si_cant_put(si);
return 0;
}
@@ -561,7 +561,7 @@
* this stream's users so that it can remove us upon termination.
*/
HA_SPIN_UNLOCK(PATREF_LOCK, &appctx->ctx.map.ref->lock);
- si_applet_cant_put(si);
+ si_cant_put(si);
return 0;
}