2009/2/27 Fabio Margarido <fabiomargar...@gmail.com>: > 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 */ >> } ... > 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?
You need #include <sofia-sip/msg_mclass.h> -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------------ 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