lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Defining a function call via a macro in lwipopts.h


From: Claude Robitaille
Subject: [lwip-users] Defining a function call via a macro in lwipopts.h
Date: Tue, 15 May 2018 14:20:28 -0400

I am trying to use this macro (from opts.h)

#define LWIP_HOOK_DHCP_APPEND_OPTIONS(netif, dhcp, state, msg, msg_type)

(from patch 40502, which results from task #14270).

Regardless of the detail of the patch, as I understand it, I need to define the macro with a function. This function is implemented in my driver. It takes a number of parameters with types defined by the library. I compile with -Werror=implicit-function-declaration, which is a good thing (I think). This causes the compilation to fail at the place where the macro is used (in dhcp.c), since it lacks the declaration for my function.

I tried to add this declaration in my lwipopts.h but this obviously fails since the lwip specific types are not defined yet.

What would be the correct way of declaring my functions?

Avis de confidentialité

Les informations contenues dans le présent message et dans toute pièce qui lui est jointe sont confidentielles et peuvent être protégées par le secret professionnel. Ces informations sont à l’usage exclusif de son ou de ses destinataires. Si vous recevez ce message par erreur, veuillez s’il vous plait communiquer immédiatement avec l’expéditeur et en détruire tout exemplaire. De plus, il vous est strictement interdit de le divulguer, de le distribuer ou de le reproduire sans l’autorisation de l’expéditeur. Merci.

Confidentiality notice

This e-mail message and any attachment hereto contain confidential information which may be privileged and which is intended for the exclusive use of its addressee(s). If you receive this message in error, please inform sender immediately and destroy any copy thereof. Furthermore, any disclosure, distribution or copying of this message and/or any attachment hereto without the consent of the sender is strictly prohibited. Thank you.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]