Plan 9 from Bell Labs’s /usr/web/sources/contrib/maht/imgfs/imgfs.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.



enum {
	id_images_folder=0x01,
	id_new=0x02,
	id_imgfolder=0x03,
	id_width=0x04,
	id_height=0x05,
	id_ppm=0x06,
	id_ctrl=0x07,
	id_alpha=0x0100,
	id_select=0x0101,
	id_red=0x0200,
	id_green=0x0201,
	id_blue=0x0202,
	id_cyan=0x0300,
	id_magenta=0x0301,
	id_yellow=0x0302,
	id_black=0x0303,
	id_hue=0x0400,
	id_saturation=0x0401,
	id_lightness=0x0402,
	id_grey=0x0500,
};

File *create_new_file(File *dir, char* filename, int perm, int id_code, Mapbook *bitmap);
Aux *new_aux(int id, Mapbook *b);

Tree *tree=nil;
File *images_folder=nil;
Aux *aux_list=nil;
int aux_count=0;
int mapbook_count=0;

struct Aux {
	int index;
	int id;
	Mapbook *mapbook;
	Aux *next;
};


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.