mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-11 18:08:08 +00:00
[c-host] fix NvFBC build after moving headers
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user