|
|
1.1 ! root 1: /* template.c - template for display processes */ ! 2: ! 3: #ifndef lint ! 4: static char *rcsid = "$Header: /f/osi/others/quipu/photo/RCS/template.c,v 7.0 89/11/23 22:01:48 mrose Rel $"; ! 5: #endif ! 6: ! 7: /* ! 8: * $Header: /f/osi/others/quipu/photo/RCS/template.c,v 7.0 89/11/23 22:01:48 mrose Rel $ ! 9: * ! 10: * ! 11: * $Log: template.c,v $ ! 12: * Revision 7.0 89/11/23 22:01:48 mrose ! 13: * Release 6.0 ! 14: * ! 15: */ ! 16: ! 17: /* ! 18: * NOTICE ! 19: * ! 20: * Acquisition, use, and distribution of this module and related ! 21: * materials are subject to the restrictions of a license agreement. ! 22: * Consult the Preface in the User's Manual for the full terms of ! 23: * this agreement. ! 24: * ! 25: */ ! 26: ! 27: ! 28: #include "stdio.h" ! 29: #include "quipu/photo.h" ! 30: ! 31: /* Any errors should be written to *stdout* */ ! 32: /* if the process exits, with out giving an error message, quipu may hang */ ! 33: ! 34: photo_start (name) ! 35: char * name; ! 36: { ! 37: /* Initialise a window to recieve a photo of 'name' */ ! 38: ! 39: /* return 0 if sucessful -1 if not */ ! 40: (void) fprintf (stderr,"PHOTO: not implemented yet"); ! 41: return (-1); ! 42: } ! 43: ! 44: ! 45: photo_end (name) ! 46: char * name; ! 47: { ! 48: /* Decoding has finished - display the photo */ ! 49: (void) printf ("done it"); ! 50: (void) fflush (stdout); ! 51: (void) close (1); /* this is needed for QUIPU if the process does not exit */ ! 52: ! 53: /* return 0 if sucessful -1 if not */ ! 54: return (-1); ! 55: } ! 56: ! 57: photo_black (length) ! 58: int length; ! 59: { ! 60: /* draw a black line of 'length' pixels */ ! 61: } ! 62: ! 63: photo_white (length) ! 64: int length; ! 65: { ! 66: /* draw a white line of 'length' pixels */ ! 67: } ! 68: ! 69: ! 70: photo_line_end (line) ! 71: bit_string * line; ! 72: { ! 73: /* the end of a line has been reached */ ! 74: /* A bit string is stored in line->dbuf_top */ ! 75: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.