kdrive: ephyr: initialize OS specific callback vectors
These will be used by subsequent commits for generic Kdrive functions calling back into the OS specific parts Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
		
							parent
							
								
									18d0455e01
								
							
						
					
					
						commit
						01ba7a7f40
					
				| 
						 | 
				
			
			@ -370,6 +370,23 @@ ddxProcessArgument(int argc, char **argv, int i)
 | 
			
		|||
    return KdProcessArgument(argc, argv, i);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static int
 | 
			
		||||
EphyrInit(void)
 | 
			
		||||
{
 | 
			
		||||
    /*
 | 
			
		||||
     * make sure at least one screen
 | 
			
		||||
     * has been added to the system.
 | 
			
		||||
     */
 | 
			
		||||
    if (!KdCardInfoLast()) {
 | 
			
		||||
        processScreenArg("640x480", NULL);
 | 
			
		||||
    }
 | 
			
		||||
    return hostx_init();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
KdOsFuncs EphyrOsFuncs = {
 | 
			
		||||
    .Init = EphyrInit,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
OsVendorInit(void)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -381,12 +398,7 @@ OsVendorInit(void)
 | 
			
		|||
    if (hostx_want_host_cursor())
 | 
			
		||||
        ephyrFuncs.initCursor = &ephyrCursorInit;
 | 
			
		||||
 | 
			
		||||
    if (serverGeneration == 1) {
 | 
			
		||||
        if (!KdCardInfoLast()) {
 | 
			
		||||
            processScreenArg("640x480", NULL);
 | 
			
		||||
        }
 | 
			
		||||
        hostx_init();
 | 
			
		||||
    }
 | 
			
		||||
    KdOsInit(&EphyrOsFuncs);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
KdCardFuncs ephyrFuncs = {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue