You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
353 B
25 lines
353 B
14 years ago
|
|
||
|
//
|
||
|
// closure.h
|
||
|
//
|
||
|
// Copyright (c) 2010 LearnBoost <tj@learnboost.com>
|
||
|
//
|
||
|
|
||
|
#ifndef __NODE_CLOSURE_H__
|
||
|
#define __NODE_CLOSURE_H__
|
||
|
|
||
|
/*
|
||
|
* PNG stream closure.
|
||
|
*/
|
||
|
|
||
|
typedef struct {
|
||
|
Persistent<Function> pfn;
|
||
|
Handle<Function> fn;
|
||
|
unsigned len;
|
||
|
uint8_t *data;
|
||
|
Canvas *canvas;
|
||
|
cairo_status_t status;
|
||
|
} closure_t;
|
||
|
|
||
|
#endif /* __NODE_CLOSURE_H__ */
|