diff options
| author | Paul Eggert | 2018-12-06 07:48:42 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-12-06 10:48:04 -0800 |
| commit | c5b6f1672bc62d9ffdd3c7200074727a4608af03 (patch) | |
| tree | 9716afd0a2d312bf448a2d03f7bbe0ad7c1ec5c1 /src/image.c | |
| parent | 6fa44f9696801eeed6a4af29549cedd5c570785a (diff) | |
| download | emacs-c5b6f1672bc62d9ffdd3c7200074727a4608af03.tar.gz emacs-c5b6f1672bc62d9ffdd3c7200074727a4608af03.zip | |
struct image_type layout is private to image.c
* src/dispextern.h (struct image_type): Move from here ...
* src/image.c (struct image_type): ... to here.
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c index ad4f95ba991..633d66e7a70 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -525,6 +525,33 @@ x_create_bitmap_mask (struct frame *f, ptrdiff_t id) | |||
| 525 | Image types | 525 | Image types |
| 526 | ***********************************************************************/ | 526 | ***********************************************************************/ |
| 527 | 527 | ||
| 528 | /* Each image format (JPEG, TIFF, ...) supported is described by | ||
| 529 | a structure of the type below. */ | ||
| 530 | |||
| 531 | struct image_type | ||
| 532 | { | ||
| 533 | /* Index of a symbol uniquely identifying the image type, e.g., 'jpeg'. */ | ||
| 534 | int type; | ||
| 535 | |||
| 536 | /* Check that SPEC is a valid image specification for the given | ||
| 537 | image type. Value is true if SPEC is valid. */ | ||
| 538 | bool (*valid_p) (Lisp_Object spec); | ||
| 539 | |||
| 540 | /* Load IMG which is used on frame F from information contained in | ||
| 541 | IMG->spec. Value is true if successful. */ | ||
| 542 | bool (*load) (struct frame *f, struct image *img); | ||
| 543 | |||
| 544 | /* Free resources of image IMG which is used on frame F. */ | ||
| 545 | void (*free) (struct frame *f, struct image *img); | ||
| 546 | |||
| 547 | /* Initialization function (used for dynamic loading of image | ||
| 548 | libraries on Windows), or NULL if none. */ | ||
| 549 | bool (*init) (void); | ||
| 550 | |||
| 551 | /* Next in list of all supported image types. */ | ||
| 552 | struct image_type *next; | ||
| 553 | }; | ||
| 554 | |||
| 528 | /* List of supported image types. Use define_image_type to add new | 555 | /* List of supported image types. Use define_image_type to add new |
| 529 | types. Use lookup_image_type to find a type for a given symbol. */ | 556 | types. Use lookup_image_type to find a type for a given symbol. */ |
| 530 | 557 | ||