[c-host] fix NvFBC build after moving headers

This commit is contained in:
Geoffrey McRae 2019-04-11 17:15:17 +10:00
parent 32bd6d96e3
commit 8cedad8241
7 changed files with 21 additions and 5 deletions

View file

@ -33,6 +33,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
struct app
{
const char * executable;
unsigned int shmSize;
int shmFD;
void * shmMap;
@ -67,6 +68,8 @@ void sigHandler(int signo)
int main(int argc, char * argv[])
{
app.executable = argv[0];
static struct option longOptions[] =
{
{"shmDevice", required_argument, 0, 'f'},
@ -177,6 +180,11 @@ int main(int argc, char * argv[])
return result;
}
const char * os_getExecutable()
{
return app.executable;
}
unsigned int os_shmemSize()
{
return app.shmSize;