star_saver.c (8871) | star_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: star_saver.c,v 1.2 1995/03/30 15:10:03 sos Exp $ | 28 * $Id: star_saver.c,v 1.3 1995/05/30 06:06:20 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> --- 47 unchanged lines hidden (view full) --- 84 set_border(scp->border); 85 scrn_blanked = 0; 86 scp->start = 0; 87 scp->end = scp->xsize * scp->ysize; 88 } 89 } 90} 91 | 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> --- 47 unchanged lines hidden (view full) --- 84 set_border(scp->border); 85 scrn_blanked = 0; 86 scp->start = 0; 87 scp->end = scp->xsize * scp->ysize; 88 } 89 } 90} 91 |
92saver_load(struct lkm_table *lkmtp, int cmd) | 92star_saver_load(struct lkm_table *lkmtp, int cmd) |
93{ 94 (*current_saver)(0); 95 old_saver = current_saver; 96 current_saver = star_saver; 97 uprintf("star screen saver installed\n"); 98 return 0; 99} 100 | 93{ 94 (*current_saver)(0); 95 old_saver = current_saver; 96 current_saver = star_saver; 97 uprintf("star screen saver installed\n"); 98 return 0; 99} 100 |
101saver_unload(struct lkm_table *lkmtp, int cmd) | 101star_saver_unload(struct lkm_table *lkmtp, int cmd) |
102{ 103 (*current_saver)(0); 104 current_saver = old_saver; 105 uprintf("star screen saver removed\n"); 106 return 0; 107} 108 | 102{ 103 (*current_saver)(0); 104 current_saver = old_saver; 105 uprintf("star screen saver removed\n"); 106 return 0; 107} 108 |
109saver_init(struct lkm_table *lkmtp, int cmd, int ver) | 109star_saver_mod(struct lkm_table *lkmtp, int cmd, int ver) |
110{ | 110{ |
111 DISPATCH(lkmtp, cmd, ver, saver_load, saver_unload, nosys); | 111 DISPATCH(lkmtp, cmd, ver, star_saver_load, star_saver_unload, nosys); |
112} | 112} |