Skip to content

Commit

Permalink
Provide a NULL dropRequestURI to minheadless
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-cellier-aka-nice committed Jan 11, 2021
1 parent 78af620 commit c73cbe9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions platforms/minheadless/common/sqWindow-Dispatch.c
Expand Up @@ -268,6 +268,12 @@ dropRequestFileName(sqInt dropIndex)
return currentWindowSystem->dropRequestFileName(dropIndex);
}

/* *** TODO ***
* provide support for URI */
char *
dropRequestURI(sqInt dropIndex)
{ return NULL; }

sqInt
dropRequestFileHandle(sqInt dropIndex)
{
Expand Down
5 changes: 5 additions & 0 deletions platforms/minheadless/common/sqWindow-Null.c
Expand Up @@ -225,6 +225,10 @@ sqNull_dropRequestFileName(sqInt dropIndex)
return 0;
}

static char *
sqNull_dropRequestURI(sqInt dropIndex)
{ return NULL; }

static sqInt
sqNull_dropRequestFileHandle(sqInt dropIndex)
{
Expand Down Expand Up @@ -267,5 +271,6 @@ sqWindowSystem sqNullWindowSystem = {
.dropInit = sqNull_dropInit,
.dropShutdown = sqNull_dropShutdown,
.dropRequestFileName = sqNull_dropRequestFileName,
.dropRequestURI = sqNull_dropRequestURI,
.dropRequestFileHandle = sqNull_dropRequestFileHandle,
};
1 change: 1 addition & 0 deletions platforms/minheadless/common/sqWindow.h
Expand Up @@ -75,6 +75,7 @@ typedef struct
sqInt (*dropShutdown) (void);

char* (*dropRequestFileName)(sqInt dropIndex);
char* (*dropRequestURI)(sqInt dropIndex);
sqInt (*dropRequestFileHandle)(sqInt dropIndex);
} sqWindowSystem;

Expand Down

0 comments on commit c73cbe9

Please sign in to comment.