Displaying 12 results from an estimated 12 matches for "_cb".
Did you mean:
_c
[PATCH libnbd v2 02/10] lib: Add macros to check if a callback is "null" or not, and set it to null.
2019 Aug 15
0
[PATCH libnbd v2 02/10] lib: Add macros to check if a callback is "null" or not, and set it to null.
...#define CALL_CALLBACK(cb, ...) \
(cb).callback ((cb).user_data, ##__VA_ARGS__)
@@ -286,9 +291,9 @@ struct command {
#define FREE_CALLBACK(cb) \
do { \
nbd_completion_callback *_cb = (nbd_completion_callback *)&(cb); \
- if (_cb->callback != NULL && _cb->free != NULL) \
+ if (CALLBACK_IS_NOT_NULL (cb) && _cb->free != NULL) \
_cb->free (_cb->user_data);...
2019 Aug 14
2
[libnbd PATCH] lib: Consolidate free callbacks to just happen at retire time
...the same for all of them. Therefore casting cb to
- * nbd_completion_callback does not change the effective code.
- */
-#define FREE_CALLBACK(cb) \
- do { \
- nbd_completion_callback *_cb = (nbd_completion_callback *)&(cb); \
- if (_cb->callback != NULL && _cb->free != NULL) \
- _cb->free (_cb->user_data); \
- _cb->callback = NULL; \
- } w...
2019 Aug 13
0
[PATCH libnbd 3/4] lib: Add FREE_CALLBACK macro.
...the same for all of them. Therefore casting cb to
+ * nbd_completion_callback does not change the effective code.
+ */
+#define FREE_CALLBACK(cb) \
+ do { \
+ nbd_completion_callback *_cb = (nbd_completion_callback *)&(cb); \
+ if (_cb->callback != NULL && _cb->free != NULL) \
+ _cb->free (_cb->user_data); \
+ _cb->callback = NULL; \
+ } w...
2019 Aug 15
0
Re: [libnbd PATCH] lib: Consolidate free callbacks to just happen at retire time
...Therefore casting cb to
> - * nbd_completion_callback does not change the effective code.
> - */
> -#define FREE_CALLBACK(cb) \
> - do { \
> - nbd_completion_callback *_cb = (nbd_completion_callback *)&(cb); \
> - if (_cb->callback != NULL && _cb->free != NULL) \
> - _cb->free (_cb->user_data); \
> - _cb->callback = NULL;...
2019 Aug 15
13
[PATCH libnbd v2 00/10] Callbacks and OCaml and Python persistent buffers.
This is a combination of these two earlier series:
https://www.redhat.com/archives/libguestfs/2019-August/msg00235.html
https://www.redhat.com/archives/libguestfs/2019-August/msg00240.html
plus changes to allow .callback = NULL / .free != NULL, and to reduce
the complexity of freeing callbacks.
Although it's rather long there's nothing complex here. We might
consider squashing some
2019 Aug 13
8
[PATCH libnbd 0/4] Add free function to callbacks.
Patches 1 & 2 are rather complex, but the end result is that we pass
closures + user_data + free function in single struct parameters as I
described previously in this email:
https://www.redhat.com/archives/libguestfs/2019-August/msg00210.html
Patch 3 adds a convenient FREE_CALLBACK macro which seems a worthwhile
simplification if you buy into 1 & 2.
Patch 4 adds another macro which is
2017 Jan 28
2
How to use op_test_callbacks ?
...k.
But for reading, using this gives 0 outframes:
outframes := op_read_float(Data.HandleOP, at Buffer[0], Wantframesm, nil);
I suspect that some callback must be defined.
In opusfile library there is:
OP_WARN_UNUSED_RESULT OggOpusFile *op_test_callbacks(void *_source,
const OpusFileCallbacks *_cb,const unsigned char *_initial_data,
size_t _initial_bytes,int *_error) OP_ARG_NONNULL(2);
Maybe it is what I need in place of op_test_memory().
But I do not understand what is _source and initial_data.
Also how to use OpusFileCallbacks.
Some example will be highly appreciated how to use op_tes...
2006 Jan 09
0
[PATCH 01/11] ocfs2: event-driven quorum
...* o2quo callbacks are now called directly by heartbeat rather than going
through o2net. Previously, o2net callbacks called o2quo callbacks
immediately. This ordering is preserved by increasing o2quo's priority over
o2net.
* Two new heartbeat event types are added: O2HB_CONN_{UP,DOWN}_CB, which
correspond to tcp connections being established and terminated.
* Outside of callbacks, where o2net used to call o2quo functions directly,
it now injects the O2HB_CONN_{UP,DOWN}_CB events.
* o2net knowledge of o2quo in header files has been moved to quorum.h
* o2net's handling o...
2018 Jun 11
0
Wine release 3.10
...d3d11: Make d3d11 *SetConstantBuffers use a helper method.
d3d11: Make d3d11 *GetConstantBuffers use a helper method.
d3d11: Make d3d10 *SetConstantBuffers use a helper method.
d3d11: Make d3d10 *GetConstantBuffers use a helper method.
wined3d: Delete the wined3d_device_get_*_cb and wined3d_device_set_*_cb methods.
Piotr Caban (1):
msvcp120: Fix _Getcvt tests when zh_CN system locale is used.
Roderick Colenbrander (4):
winevulkan: Fix parsing of const function pointer members.
winevulkan: Parse forward declared struct members.
winevulkan: Parse ex...
2014 Dec 03
0
[PATCH] Update links.html
...p;!(D03U|E(5c0s
zDQ&NfN3UZxBan{}=e35+^N_^dUCk~{mU+%UtnduhMNkwi=9+9qpr=n-PY!|fHyFG_
zMd?NEpzU;R&JFwJG>H{XoY1?7p5}3(RtxE?fuU<A&+|)I*nq0B@%gaHy4$}DyMK*x
z2OIP2EBW4zB=U}BegGY%L<-IAwV>~v-X*Y<yyk(tneO-lkkvUM=aC=iy+=3Bx<_=d
zU)?m3pG6(7f3=ZMUbm at vG(25~g|4|w*W7HWWBVy4uR*T?URC{_cB>l<GcSU#+O{9V
z6Jo26(A|hauZ_jxuOzqA#Cy&9-lrPAw2*C5wKi$-Qf*4ql-%^B*QOh)OS-;)Z{2wF
z&re<Iy{!-ZIE_w+N|9Fm%d#8orZEDBwN~c4W+REWDk)PH>B{{_tmxXSrgE~l5_(7C
zE`!9YriDd;ZW^WmCWc^oU8zU>92aA_4YIPsG5!khTJ}?)NOyOLu<JIjHoax{<f5#i
z$U$C<qUZ*4RW0F?AD!lT>NV*H6m1%K$NLVyAY`VtZR}h({&am...
2015 May 26
6
[PATCH 0/6] Update the way that API versions are generated for the man page.
The existing mechanism was clunky, slow and used ~ 10 MB of
local disk.
Rich.
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...57Q&B5gBjK(p!^ns6wWY+k<kYToGG4JKDa$##u{k
z<)oYRv}n1R;7pwfT`!}DPCu^NX2<pwZ2)$uwA(ES-MUSjIFVjj!9`ZL9<i~#yOqOU
zyH(Y8Goal_lg{V~Wv<YK*93a(c(sG<OQ+r4Vb&~CXRC$^PI*^8u$VCu?R|3QLITTU
z#9hL%_wH7PEF2OMKgRhSY}M(}ps4Lo4<zM0YP-V*@ahzAf4Z>_pVVL*R&B*&^2T;S
z&)<CX;^9q|_cbs(SR}n+i&WRu46%S|1zH>wR6;gE>uR>TP-~(fMtsWf=@YdVFxYCY
zw%A;%(7s}^#AY{J(7Mj89AT29Gm+kQw7Q38fZJIJ;G8Vy!NNf>)`;q|L@}PMOM`9%
z%|stc+cYLLD0(*rttMa(igIecq)Yl%>TJA1%#^3)ORmCsIfveM;aX#`8KAmIv<4eq
zh)T6qdIQ_0(Au0f*L8aRFp6AqzOU}pY9;1{i9_ucQx2d95*sJ};N5o(yCl;GwJBJ*
z1J`hBbts3lDYVezm4{o&...