Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3078758
formdata.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
753 B
Referenced Files
None
Subscribers
None
formdata.h
View Options
#ifndef FORMDATA_H
#define FORMDATA_H
#include
<stdint.h>
#include
<stddef.h>
#include
<stdbool.h>
#include
"types.h"
typedef
struct
fd_entry
{
char
*
name
;
bool
is_file
;
char
*
str_value
;
size_t
val_idx
;
struct
fd_entry
*
next
;
}
fd_entry_t
;
typedef
struct
{
fd_entry_t
*
head
;
fd_entry_t
**
tail
;
size_t
count
;
}
fd_data_t
;
void
init_formdata_module
(
void
);
bool
formdata_is_empty
(
ant_value_t
fd
);
bool
formdata_is_formdata
(
ant_t
*
js
,
ant_value_t
obj
);
ant_value_t
formdata_create_empty
(
ant_t
*
js
);
ant_value_t
formdata_append_string
(
ant_t
*
js
,
ant_value_t
fd
,
ant_value_t
name_v
,
ant_value_t
value_v
);
ant_value_t
formdata_append_file
(
ant_t
*
js
,
ant_value_t
fd
,
ant_value_t
name_v
,
ant_value_t
blob_v
,
ant_value_t
filename_v
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Apr 4, 4:30 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
521624
Default Alt Text
formdata.h (753 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment