[asterisk-dev] OT: C problems with access to "struct ast_frame.data" member

Holger Wirtz wirtz at dfn.de
Mon May 25 01:02:52 CDT 2009


Arkadi, Moises,

Arkadi Shishlov wrote:
> Holger Wirtz wrote:
>> struct ast_frame {
>> ...
>>         /*! Pointer to actual data */
>>         union { void *ptr; uint32_t uint32; char pad[8]; } data;
> 
> use f->data.ptr


Ahhh! I am such an idiot... ok, I see what I was doing wrong. Sorry for
contacting the list with such a stupid question!

Thanks, Holger


-- 
#####  #### ##  ##   Holger Wirtz         Phone : (+49 30) 884299-40
##  ## ##   ### ##   DFN-Verein           Fax   : (+49 30) 884299-70
##  ## #### ######   Alexanderplatz 1     E-Mail: wirtz at dfn.de
##  ## ##   ## ###   10178 Berlin
#####  ##   ##  ##   GERMANY              WWW   : http://www.dfn.de
GPG-Fingerprint: ABFA 1F51 DD8D 503C 85DC  0C51 E961 79E2 6685 9BCF



More information about the asterisk-dev mailing list