libgoatvr
annotate src/vr_null.c @ 7:6896f9cf9621
- configure now emits config.status with the current confure invocation
- now vr_init will heed the VR_MODULE env var for the name of the module to use
- more stuff on the openhmd module
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 19 Sep 2014 15:16:51 +0300 |
parents | ded3d0a74e19 |
children |
rev | line source |
---|---|
nuclear@0 | 1 #include "vr_impl.h" |
nuclear@0 | 2 |
nuclear@0 | 3 static int init(void) |
nuclear@0 | 4 { |
nuclear@0 | 5 return 0; |
nuclear@0 | 6 } |
nuclear@0 | 7 |
nuclear@0 | 8 struct vr_module *vr_module_null(void) |
nuclear@0 | 9 { |
nuclear@0 | 10 static struct vr_module m; |
nuclear@0 | 11 |
nuclear@0 | 12 if(!m.init) { |
nuclear@0 | 13 m.name = "null"; |
nuclear@0 | 14 m.init = init; |
nuclear@0 | 15 } |
nuclear@0 | 16 return &m; |
nuclear@0 | 17 } |