2 inherit Service.Service;
9 mixed getAttribute (object obj, string key) {
10 return obj->query_attribute(key);
13 void call_service(object user, mixed args, int|void id) {
14 werror("Graphic Service called with %O\n", args);
16 object image = args[0];
19 bool maintain_aspect = args[3];
21 string result = Graphic.get_thumbnail(image, xsize, ysize, maintain_aspect, true);
23 async_result(id, result);
24 //if ( id ) async_result(result);
25 //else callback_service(user, id, result);
35 private void got_kill(int sig) {
41 int main(int argc, array argv)
43 signal(signum("QUIT"), got_kill);
44 init( "graphic", argv );