nuttx: add missing FAR and CODE
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
69d5f960fc
commit
f15605da2f
@ -58,8 +58,8 @@
|
|||||||
struct command
|
struct command
|
||||||
{
|
{
|
||||||
FAR const char *name;
|
FAR const char *name;
|
||||||
CODE int (* const cmd)(int argc, const char *argv[]);
|
CODE int (* const cmd)(int argc, FAR const char *argv[]);
|
||||||
const char *args;
|
FAR const char *args;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct dac_state_s
|
struct dac_state_s
|
||||||
|
@ -110,7 +110,7 @@ int main(int argc, FAR char *argv[])
|
|||||||
uint8_t mac[IFHWADDRLEN];
|
uint8_t mac[IFHWADDRLEN];
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_EXAMPLES_WEBSERVER_DHCPC
|
#ifdef CONFIG_EXAMPLES_WEBSERVER_DHCPC
|
||||||
void *handle;
|
FAR void *handle;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Many embedded network interfaces must have a software assigned MAC */
|
/* Many embedded network interfaces must have a software assigned MAC */
|
||||||
|
@ -100,7 +100,7 @@
|
|||||||
|
|
||||||
struct httpd_fs_file
|
struct httpd_fs_file
|
||||||
{
|
{
|
||||||
char *data;
|
FAR char *data;
|
||||||
int len;
|
int len;
|
||||||
#if defined(CONFIG_NETUTILS_HTTPD_MMAP) || \
|
#if defined(CONFIG_NETUTILS_HTTPD_MMAP) || \
|
||||||
defined(CONFIG_NETUTILS_HTTPD_SENDFILE)
|
defined(CONFIG_NETUTILS_HTTPD_SENDFILE)
|
||||||
@ -123,7 +123,7 @@ struct httpd_state
|
|||||||
#endif
|
#endif
|
||||||
struct httpd_fs_file ht_file; /* Fake file data to send */
|
struct httpd_fs_file ht_file; /* Fake file data to send */
|
||||||
int ht_sockfd; /* The socket descriptor from accept() */
|
int ht_sockfd; /* The socket descriptor from accept() */
|
||||||
char *ht_scriptptr;
|
FAR char *ht_scriptptr;
|
||||||
uint16_t ht_scriptlen;
|
uint16_t ht_scriptlen;
|
||||||
uint16_t ht_sndlen;
|
uint16_t ht_sndlen;
|
||||||
};
|
};
|
||||||
@ -150,12 +150,12 @@ struct httpd_fsdata_file_noconst
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (*httpd_cgifunction)(struct httpd_state *, char *);
|
typedef void CODE (*httpd_cgifunction)(FAR struct httpd_state *, FAR char *);
|
||||||
|
|
||||||
struct httpd_cgi_call
|
struct httpd_cgi_call
|
||||||
{
|
{
|
||||||
struct httpd_cgi_call *next;
|
FAR struct httpd_cgi_call *next;
|
||||||
const char *name;
|
FAR const char *name;
|
||||||
httpd_cgifunction function;
|
httpd_cgifunction function;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -226,7 +226,7 @@ int httpd_listen(void);
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void httpd_cgi_register(struct httpd_cgi_call *cgi_call);
|
void httpd_cgi_register(FAR struct httpd_cgi_call *cgi_call);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: httpd_send_datachunk
|
* Name: httpd_send_datachunk
|
||||||
@ -248,7 +248,7 @@ void httpd_cgi_register(struct httpd_cgi_call *cgi_call);
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int httpd_send_datachunk(int sockfd, void *data, int len, bool chunked);
|
int httpd_send_datachunk(int sockfd, FAR void *data, int len, bool chunked);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: httpd_send_headers
|
* Name: httpd_send_headers
|
||||||
@ -267,10 +267,10 @@ int httpd_send_datachunk(int sockfd, void *data, int len, bool chunked);
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int httpd_send_headers(struct httpd_state *pstate, int status, int len);
|
int httpd_send_headers(FAR struct httpd_state *pstate, int status, int len);
|
||||||
|
|
||||||
#ifdef CONFIG_NETUTILS_HTTPDFSSTATS
|
#ifdef CONFIG_NETUTILS_HTTPDFSSTATS
|
||||||
uint16_t httpd_fs_count(char *name);
|
uint16_t httpd_fs_count(FAR char *name);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_NETUTILS_HTTPD_DIRLIST
|
#ifdef CONFIG_NETUTILS_HTTPD_DIRLIST
|
||||||
|
Loading…
Reference in New Issue
Block a user