fade_saver.c (8871) | fade_saver.c (11857) |
---|---|
1/*- 2 * Copyright (c) 1995 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1995 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $Id: fade_saver.c,v 1.1 1995/02/22 13:46:32 sos Exp $ | 28 * $Id: fade_saver.c,v 1.2 1995/05/30 06:06:15 rgrimes Exp $ |
29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/conf.h> 34#include <sys/exec.h> 35#include <sys/sysent.h> 36#include <sys/lkm.h> --- 31 unchanged lines hidden (view full) --- 68 } 69 } 70 else { 71 load_palette(); 72 count = scrn_blanked = 0; 73 } 74} 75 | 29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/conf.h> 34#include <sys/exec.h> 35#include <sys/sysent.h> 36#include <sys/lkm.h> --- 31 unchanged lines hidden (view full) --- 68 } 69 } 70 else { 71 load_palette(); 72 count = scrn_blanked = 0; 73 } 74} 75 |
76saver_load(struct lkm_table *lkmtp, int cmd) | 76fade_saver_load(struct lkm_table *lkmtp, int cmd) |
77{ 78 (*current_saver)(0); 79 old_saver = current_saver; 80 current_saver = fade_saver; 81 uprintf("fade screen saver installed\n"); 82 return 0; 83} 84 | 77{ 78 (*current_saver)(0); 79 old_saver = current_saver; 80 current_saver = fade_saver; 81 uprintf("fade screen saver installed\n"); 82 return 0; 83} 84 |
85saver_unload(struct lkm_table *lkmtp, int cmd) | 85fade_saver_unload(struct lkm_table *lkmtp, int cmd) |
86{ 87 (*current_saver)(0); 88 current_saver = old_saver; 89 uprintf("fade screen saver removed\n"); 90 return 0; 91} 92 | 86{ 87 (*current_saver)(0); 88 current_saver = old_saver; 89 uprintf("fade screen saver removed\n"); 90 return 0; 91} 92 |
93saver_init(struct lkm_table *lkmtp, int cmd, int ver) | 93fade_saver_mod(struct lkm_table *lkmtp, int cmd, int ver) |
94{ | 94{ |
95 DISPATCH(lkmtp, cmd, ver, saver_load, saver_unload, nosys); | 95 DISPATCH(lkmtp, cmd, ver, fade_saver_load, fade_saver_unload, nosys); |
96} | 96} |