Jose Pereira c8e4a65bd1 merged version 1.0a3
- Rotation now fully working (on demand with F4 key)
- Speed improvements and bug fixes
- Improved server state detection (using IPC)
- changed to LibVNCServer from kanaka repository
- New webserver vnc client (noVNC), uses javascript
- Ability to make a reverse connection
- Two new framebuffer access methods (gingerbread and adb)
- New minimalistic interface
2011-10-29 11:56:13 +01:00

30 lines
749 B
C
Executable File

#include <rfb/rfb.h>
int main(int argc,char** argv)
{
int fake_argc=6;
char* fake_argv[6]={
"dummy_program","-alwaysshared","-httpport","3002","-nothing","-dontdisconnect"
};
rfbScreenInfoPtr screen;
rfbBool ret=0;
screen = rfbGetScreen(&fake_argc,fake_argv,1024,768,8,3,1);
#define CHECK(a,b) if(screen->a!=b) { fprintf(stderr,#a " is %d (should be " #b ")\n",screen->a); ret=1; }
CHECK(width,1024);
CHECK(height,768);
CHECK(alwaysShared,TRUE);
CHECK(httpPort,3002);
CHECK(dontDisconnect,TRUE);
if(fake_argc!=2) {
fprintf(stderr,"fake_argc is %d (should be 2)\n",fake_argc);
ret=1;
}
if(strcmp(fake_argv[1],"-nothing")) {
fprintf(stderr,"fake_argv[1] is %s (should be -nothing)\n",fake_argv[1]);
ret=1;
}
return ret;
}