FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
emscripten/tests/fetch/example_idb_delete.cpp at incoming · JavaScriptIOT/emscripten · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
JavaScriptIOT
/
emscripten
Public
forked from
emscripten-core/emscripten
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
emscripten
/
tests
/
fetch
/
example_idb_delete.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (20 loc) · 505 Bytes
Breadcrumbs
emscripten
/
tests
/
fetch
/
example_idb_delete.cpp
Copy path
File metadata and controls
23 lines (20 loc) · 505 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
include
<
string.h
>
#
include
<
stdio.h
>
#
include
<
emscripten/fetch.h
>
void
success
(
emscripten_fetch_t
*fetch)
{
printf
(
"
Deleting file from IDB succeeded.
\n
"
);
emscripten_fetch_close
(fetch);
}
void
failure
(
emscripten_fetch_t
*fetch)
{
printf
(
"
Deleting file from IDB failed.
\n
"
);
emscripten_fetch_close
(fetch);
}
int
main
()
{
emscripten_fetch_attr_t
attr;
emscripten_fetch_attr_init
(&attr);
strcpy
(attr.
requestMethod
,
"
EM_IDB_DELETE
"
);
emscripten_fetch
(&attr,
"
filename_to_delete.dat
"
);
}
Back
|
FazBrowse Home
|
New Git URL