Home
last modified time | relevance | path

Searched refs:hook (Results 1 – 25 of 522) sorted by relevance

12345678910>>...21

/third_party/glib/glib/
Dghook.c181 GHook *hook) in default_finalize_hook() argument
183 GDestroyNotify destroy = hook->destroy; in default_finalize_hook()
187 hook->destroy = NULL; in default_finalize_hook()
188 destroy (hook->data); in default_finalize_hook()
231 GHook *hook; in g_hook_list_clear() local
235 hook = hook_list->hooks; in g_hook_list_clear()
236 if (!hook) in g_hook_list_clear()
245 g_hook_ref (hook_list, hook); in g_hook_list_clear()
246 g_hook_destroy_link (hook_list, hook); in g_hook_list_clear()
247 tmp = hook->next; in g_hook_list_clear()
[all …]
Dghook.h43 typedef gboolean (*GHookFindFunc) (GHook *hook,
45 typedef void (*GHookMarshaller) (GHook *hook,
47 typedef gboolean (*GHookCheckMarshaller) (GHook *hook,
52 GHook *hook);
87 #define G_HOOK(hook) ((GHook*) (hook)) argument
88 #define G_HOOK_FLAGS(hook) (G_HOOK (hook)->flags) argument
89 #define G_HOOK_ACTIVE(hook) ((G_HOOK_FLAGS (hook) & \ argument
91 #define G_HOOK_IN_CALL(hook) ((G_HOOK_FLAGS (hook) & \ argument
93 #define G_HOOK_IS_VALID(hook) (G_HOOK (hook)->hook_id != 0 && \ argument
94 (G_HOOK_FLAGS (hook) & \
[all …]
/third_party/pulseaudio/src/pulsecore/
Dhook-list.c30 void pa_hook_init(pa_hook *hook, void *data) { in pa_hook_init() argument
31 pa_assert(hook); in pa_hook_init()
33 PA_LLIST_HEAD_INIT(pa_hook_slot, hook->slots); in pa_hook_init()
34 hook->n_dead = hook->n_firing = 0; in pa_hook_init()
35 hook->data = data; in pa_hook_init()
38 static void slot_free(pa_hook *hook, pa_hook_slot *slot) { in slot_free() argument
39 pa_assert(hook); in slot_free()
42 PA_LLIST_REMOVE(pa_hook_slot, hook->slots, slot); in slot_free()
47 void pa_hook_done(pa_hook *hook) { in pa_hook_done() argument
48 pa_assert(hook); in pa_hook_done()
[all …]
Dhook-list.h47 pa_hook *hook; member
61 void pa_hook_init(pa_hook *hook, void *data);
62 void pa_hook_done(pa_hook *hook);
64 pa_hook_slot* pa_hook_connect(pa_hook *hook, pa_hook_priority_t prio, pa_hook_cb_t cb, void *data);
67 pa_hook_result_t pa_hook_fire(pa_hook *hook, void *data);
69 bool pa_hook_is_firing(pa_hook *hook);
/third_party/glib/glib/tests/
Dhook.c40 GHook *hook; in test_hook1() local
47 hook = g_hook_alloc (hl); in test_hook1()
48 hook->data = GINT_TO_POINTER(1); in test_hook1()
49 hook->func = hook_func; in test_hook1()
50 hook->flags = G_HOOK_FLAG_ACTIVE; in test_hook1()
51 hook->destroy = destroy; in test_hook1()
52 g_hook_append (hl, hook); in test_hook1()
53 id = hook->hook_id; in test_hook1()
56 g_assert (h == hook); in test_hook1()
58 h = hook = g_hook_alloc (hl); in test_hook1()
[all …]
/third_party/node/deps/npm/lib/
Dhook.js15 hook.usage = [
22 hook.completion = (opts, cb) => {
36 throw Object.assign(new Error(hook.usage), {code: 'EUSAGE'})
39 module.exports = (args, cb) => BB.try(() => hook(args)).then(
43 function hook (args) { function
67 return hookApi.add(pkg, uri, secret, opts).then(hook => {
69 output(JSON.stringify(hook, null, 2))
71 output(Object.keys(hook).join('\t'))
72 output(Object.keys(hook).map(k => hook[k]).join('\t'))
74 output(`+ ${hookName(hook)} ${
[all …]
/third_party/node/deps/npm/docs/content/cli-commands/
Dnpm-hook.md3 title: npm-hook
7 # npm-hook(1)
14 npm hook ls [pkg]
15 npm hook add <entity> <url> <secret>
16 npm hook update <id> <url> [secret]
17 npm hook rm <id>
22 Add a hook to watch a package for changes:
24 $ npm hook add lodash https://example.com/ my-shared-secret
27 Add a hook to watch packages belonging to the user `substack`:
29 $ npm hook add ~substack https://example.com/ my-shared-secret
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
36 EXPECT_TRUE(hook.Load() == nullptr); in TEST()
38 hook(1); in TEST()
42 hook.Store(TestHook); in TEST()
43 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
45 hook(1); in TEST()
49 hook.Store(TestHook); in TEST()
50 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
52 hook(2); in TEST()
60 hook(TestHook); in TEST() local
[all …]
/third_party/abseil-cpp/absl/base/internal/
Datomic_hook_test.cc32 hook; in TEST() local
36 EXPECT_TRUE(hook.Load() == nullptr); in TEST()
38 hook(1); in TEST()
42 hook.Store(TestHook); in TEST()
43 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
45 hook(1); in TEST()
49 hook.Store(TestHook); in TEST()
50 EXPECT_TRUE(hook.Load() == TestHook); in TEST()
52 hook(2); in TEST()
60 hook(TestHook); in TEST() local
[all …]
/third_party/node/test/parallel/
Dtest-async-hooks-enable-disable.js6 const hook = async_hooks.createHook({ constant
13 assert.strictEqual(hook.enable(), hook);
14 assert.strictEqual(hook.enable(), hook);
18 assert.strictEqual(hook.disable(), hook);
19 assert.strictEqual(hook.disable(), hook);
20 assert.strictEqual(hook.disable(), hook);
/third_party/python/Lib/test/
Daudit-tests.py82 with TestHook() as hook:
84 assertEqual(hook.seen[0][0], "test_event")
85 assertEqual(hook.seen[0][1], (1, 2, 3))
122 with TestHook(raise_on_events="pickle.find_class") as hook:
142 with TestHook() as hook:
156 actual = [(a[0], a[1]) for e, a in hook.seen if e == "object.__setattr__"]
173 with TestHook(raise_on_events={"open"}) as hook:
186 actual_mode = [(a[0], a[1]) for e, a in hook.seen if e == "open" and a[1]]
187 actual_flag = [(a[0], a[2]) for e, a in hook.seen if e == "open" and not a[1]]
214 with TestHook() as hook:
[all …]
/third_party/gstreamer/gst_libav/common/
Dgst-autogen.sh120 for hook in pre-commit; do
121 if test ! \( -x .git/hooks/$hook -a -L .git/hooks/$hook \); then
122 echo "+ Installing git $hook hook"
123 rm -f .git/hooks/$hook
124 ln -s ../../common/hooks/$hook.hook .git/hooks/$hook || {
126 if cp common/hooks/pre-commit.hook .git/hooks/pre-commit; then
129 echo "********** Couldn't install git $hook hook **********";
/third_party/gstreamer/gstplugins_base/common/
Dgst-autogen.sh120 for hook in pre-commit; do
121 if test ! \( -x .git/hooks/$hook -a -L .git/hooks/$hook \); then
122 echo "+ Installing git $hook hook"
123 rm -f .git/hooks/$hook
124 ln -s ../../common/hooks/$hook.hook .git/hooks/$hook || {
126 if cp common/hooks/pre-commit.hook .git/hooks/pre-commit; then
129 echo "********** Couldn't install git $hook hook **********";
/third_party/gstreamer/gstplugins_bad/common/
Dgst-autogen.sh120 for hook in pre-commit; do
121 if test ! \( -x .git/hooks/$hook -a -L .git/hooks/$hook \); then
122 echo "+ Installing git $hook hook"
123 rm -f .git/hooks/$hook
124 ln -s ../../common/hooks/$hook.hook .git/hooks/$hook || {
126 if cp common/hooks/pre-commit.hook .git/hooks/pre-commit; then
129 echo "********** Couldn't install git $hook hook **********";
/third_party/gstreamer/gstreamer/common/
Dgst-autogen.sh120 for hook in pre-commit; do
121 if test ! \( -x .git/hooks/$hook -a -L .git/hooks/$hook \); then
122 echo "+ Installing git $hook hook"
123 rm -f .git/hooks/$hook
124 ln -s ../../common/hooks/$hook.hook .git/hooks/$hook || {
126 if cp common/hooks/pre-commit.hook .git/hooks/pre-commit; then
129 echo "********** Couldn't install git $hook hook **********";
/third_party/gstreamer/gstplugins_good/common/
Dgst-autogen.sh120 for hook in pre-commit; do
121 if test ! \( -x .git/hooks/$hook -a -L .git/hooks/$hook \); then
122 echo "+ Installing git $hook hook"
123 rm -f .git/hooks/$hook
124 ln -s ../../common/hooks/$hook.hook .git/hooks/$hook || {
126 if cp common/hooks/pre-commit.hook .git/hooks/pre-commit; then
129 echo "********** Couldn't install git $hook hook **********";
/third_party/gstreamer/gstplugins_bad/ext/closedcaption/
Dmisc.h349 #define error(hook, templ, args...) \ argument
351 #define warning(hook, templ, args...) \ argument
353 #define notice(hook, templ, args...) \ argument
355 #define info(hook, templ, args...) \ argument
357 #define debug1(hook, templ, args...) \ argument
359 #define debug2(hook, templ, args...) \ argument
361 #define debug3(hook, templ, args...) \ argument
364 #define error(hook, templ, ...) \ argument
366 #define warning(hook, templ, ...) \ argument
368 #define notice(hook, templ, ...) \ argument
[all …]
/third_party/pulseaudio/src/tests/
Dhook-list-test.c25 pa_hook hook; in START_TEST() local
28 pa_hook_init(&hook, (void*) "hook"); in START_TEST()
30 pa_hook_connect(&hook, PA_HOOK_LATE, (pa_hook_cb_t) func1, (void*) "slot1"); in START_TEST()
31 slot = pa_hook_connect(&hook, PA_HOOK_NORMAL, (pa_hook_cb_t) func2, (void*) "slot2"); in START_TEST()
32 pa_hook_connect(&hook, PA_HOOK_NORMAL, (pa_hook_cb_t) func1, (void*) "slot3"); in START_TEST()
34 pa_hook_fire(&hook, (void*) "call1"); in START_TEST()
38 pa_hook_fire(&hook, (void*) "call2"); in START_TEST()
40 pa_hook_done(&hook); in START_TEST()
/third_party/node/benchmark/async_hooks/
Dpromises.js5 let hook; variable
8 hook = createHook({
13 hook = createHook({
18 hook = createHook({
24 hook = createHook({
50 if (hook) hook.disable();
/third_party/node/lib/internal/
Dinspector_async_hook.js3 let hook; variable
15 hook = createHook({
47 hook.promiseIds = new SafeSet();
51 if (hook === undefined) lazyHookCreation();
64 hook.enable();
69 if (hook === undefined) lazyHookCreation();
70 hook.disable();
/third_party/typescript/tests/baselines/reference/
DjsDeclarationsFunctionClassesCjsExportAssignment.symbols21 === tests/cases/conformance/jsdoc/declarations/hook.js ===
29 >Hook : Symbol(Hook, Decl(hook.js, 0, 0))
30 >handle : Symbol(handle, Decl(hook.js, 6, 14))
33 >this.handle : Symbol(Hook.handle, Decl(hook.js, 6, 23))
34 >this : Symbol(Hook, Decl(hook.js, 0, 0))
35 >handle : Symbol(Hook.handle, Decl(hook.js, 6, 23))
36 >handle : Symbol(handle, Decl(hook.js, 6, 14))
39 >module.exports : Symbol(module.exports, Decl(hook.js, 0, 0))
40 >module : Symbol(export=, Decl(hook.js, 8, 1))
41 >exports : Symbol(export=, Decl(hook.js, 8, 1))
[all …]
DjsDeclarationsFunctionClassesCjsExportAssignment.types23 === tests/cases/conformance/jsdoc/declarations/hook.js ===
53 * @typedef {import("./hook")} Hook
54 * @typedef {import("./hook").HookHandler} HookHandler
62 * @prop {Hook} hook
70 * @prop {Hook} hook
99 …input: Input, handle?: import("tests/cases/conformance/jsdoc/declarations/hook").HookHandler): Sta…
102 >this.construct : (input: Input, handle?: import("tests/cases/conformance/jsdoc/declarations/hook")…
103 …input: Input, handle?: import("tests/cases/conformance/jsdoc/declarations/hook").HookHandler): Sta…
104 >construct : (input: Input, handle?: import("tests/cases/conformance/jsdoc/declarations/hook").Hook…
111 …input: Input, handle?: import("tests/cases/conformance/jsdoc/declarations/hook").HookHandler): Sta…
[all …]
/third_party/node/deps/npm/node_modules/libnpmhook/
DREADME.md15 // array of hook objects on `mypkg`.
27 * [hook opts](#opts)
57 The `endpoint` should be a fully-qualified http URL for the endpoint the hook
59 hook will send to that endpoint to verify that it's actually coming from the
60 registry hook.
62 The returned Promise resolves to the full hook object that was created,
66 /v1/hooks/hook`](https://github.com/npm/registry/blob/master/docs/hooks/endpoints.md#post-v1hooksho…
95 Returns the hook identified by `id`.
97 The returned Promise resolves to the full hook object that was found, or error
101 /v1/hooks/hook/:id`](https://github.com/npm/registry/blob/master/docs/hooks/endpoints.md#get-v1hook…
[all …]
/third_party/node/test/async-hooks/
Dtest-late-hook-enable.js16 hook.disable();
27 hook.disable();
34 const hook = async_hooks.createHook({ constant
38 hook.disable();
48 hook.enable();
/third_party/gstreamer/gstreamer/gst/
Dgsttracerutils.c146 GstTracerHook *hook; in _priv_gst_tracing_deinit() local
156 hook = (GstTracerHook *) t_node->data; in _priv_gst_tracing_deinit()
157 gst_object_unref (hook->tracer); in _priv_gst_tracing_deinit()
158 g_slice_free (GstTracerHook, hook); in _priv_gst_tracing_deinit()
172 GstTracerHook *hook = g_slice_new0 (GstTracerHook); in gst_tracing_register_hook_id() local
173 hook->tracer = gst_object_ref (tracer); in gst_tracing_register_hook_id()
174 hook->func = func; in gst_tracing_register_hook_id()
176 list = g_list_prepend (list, hook); in gst_tracing_register_hook_id()

12345678910>>...21