Displaying 4 results from an estimated 4 matches for "check_request".
2007 Sep 28
1
SwfDec in Windows
...ctOps'
C:/msys/1.0/home/Administrador/swfdec-0.4.3/libswfdec/js/jsapi.c:598:
undefined reference to '_imp__js_FunctionClass'
The lines are:
JS_PUBLIC_API(JSType)
JS_TypeOfValue(JSContext *cx, jsval v)
{
JSType type;
JSObject *obj;
JSObjectOps *ops;
JSClass *clasp;
CHECK_REQUEST(cx);
if (JSVAL_IS_OBJECT(v)) {
/* XXX JSVAL_IS_OBJECT(v) is true for null too! Can we change ECMA? */
obj = JSVAL_TO_OBJECT(v);
if (obj &&
(ops = obj->map->ops,
ops == &js_ObjectOps //***ERROR IN THIS LINE****/
? (...
2020 Jul 15
0
[PATCH nbdkit v2] curl: Implement header and cookie scripts.
...inttypes.h>
+#include <string.h>
+#include <unistd.h>
+
+#include <libnbd.h>
+
+#include "cleanup.h"
+#include "web-server.h"
+
+#include "test.h"
+
+static int iteration;
+
+#define SCRIPT \
+ "echo iteration=$iteration"
+
+static void
+check_request (const char *request)
+{
+ char expected[64];
+
+ /* Check the Cookie header. */
+ snprintf (expected, sizeof expected,
+ "\r\nCookie: iteration=%u\r\n", iteration);
+ if (strcasestr (request, expected) == NULL) {
+ fprintf (stderr, "%s: no/incorrect iteration cooki...
2020 Jul 15
2
[PATCH nbdkit v2] curl: Implement header and cookie scripts.
Evolution of this patch series:
https://www.redhat.com/archives/libguestfs/2020-July/thread.html#00073
Instead of auth-script, this implements header-script and
cookie-script. It can be used for similar purposes but the
implementation is somewhat saner.
Rich.
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
...i.c
+++ b/libswfdec/js/jsapi.c
@@ -2098,7 +2098,7 @@ JS_GetObjectId(JSContext *cx, JSObject *
}
JS_PUBLIC_API(JSObject *)
-JS_NewObject(JSContext *cx, JSClass *clasp, JSObject *proto, JSObject *parent)
+JS_NewObject(JSContext *cx, const JSClass *clasp, JSObject *proto, JSObject *parent)
{
CHECK_REQUEST(cx);
if (!clasp)
diff --git a/libswfdec/js/jsapi.h b/libswfdec/js/jsapi.h
index 441bf74..1718acc 100644
--- a/libswfdec/js/jsapi.h
+++ b/libswfdec/js/jsapi.h
@@ -930,7 +930,7 @@ extern JS_PUBLIC_API(JSBool)
JS_GetObjectId(JSContext *cx, JSObject *obj, jsid *idp);
extern JS_PUBLIC_API(JSObj...