-(defun make-resource-font (&key filename size encoding)
- `(:type font :filename ,filename :size ,size :enconding ,encoding))
+(defun make-resource-font (&key filename encoding)
+ `(:type font :filename ,filename :enconding ,encoding))
+
+(defmacro get-rtime (key)
+ `(resource-time (gethash ,key resources-table)))
+
+(defmacro get-rplist (key)
+ `(resource-plist (gethash ,key resources-table)))
+
+(defmacro get-rconstructor (key)
+ `(resource-constructor (gethash ,key resources-table)))
+
+(defmacro get-rdestructor (key)
+ `(resource-destructor (gethash ,key resources-table)))
+
+(let ((resources-table (make-hash-table :test 'equal))
+ (expiration-time 50000))