On Thu, Feb 26, 2009 at 18:21, Pekka Pessi <ppe...@gmail.com> wrote:
> You can get msg_href_t by name with msg_find_hclass(), like
>
> msg_href_t *href = msg_find_hclass(msg_mclass(msg), name, NULL);
> msg_header_t **slot = (char *)sip + href->hr_offset;
>
> if (href->hr_class->hc_name[0]) {
> /* Well-known header */
> }
> else {
> /* Unknown header */
> }
>
Hi there Pekka,
Thanks a lot for your suggestion. I tried it, but it won't compile. This is
what I got as a result:
warning: initialization makes pointer from integer without a cast
error: dereferencing pointer to incomplete type
error: dereferencing pointer to incomplete type
The lines that triggered errors were the 'msg_header_t **slot (...)' line
and the 'if (...)' line. I believe I'm not allowed to access the members of
href. Is there something else I'm missing?
Thanks again.
Fabio
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel