mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-07-31 11:33:38 +00:00
[c-host] fix NvFBC build after moving headers
This commit is contained in:
parent
32bd6d96e3
commit
8cedad8241
7 changed files with 21 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue