aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2018-12-06 07:48:42 -0800
committerPaul Eggert2018-12-06 10:48:04 -0800
commitc5b6f1672bc62d9ffdd3c7200074727a4608af03 (patch)
tree9716afd0a2d312bf448a2d03f7bbe0ad7c1ec5c1 /src
parent6fa44f9696801eeed6a4af29549cedd5c570785a (diff)
downloademacs-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')
-rw-r--r--src/dispextern.h28
-rw-r--r--src/image.c27
2 files changed, 27 insertions, 28 deletions
diff --git a/src/dispextern.h b/src/dispextern.h
index 776d14080e5..4cd017603d1 100644
--- a/src/dispextern.h
+++ b/src/dispextern.h
@@ -2935,34 +2935,6 @@ struct redisplay_interface
2935 2935
2936#ifdef HAVE_WINDOW_SYSTEM 2936#ifdef HAVE_WINDOW_SYSTEM
2937 2937
2938/* Each image format (JPEG, TIFF, ...) supported is described by
2939 a structure of the type below. */
2940
2941struct image_type
2942{
2943 /* Index of a symbol uniquely identifying the image type, e.g., 'jpeg'. */
2944 int type;
2945
2946 /* Check that SPEC is a valid image specification for the given
2947 image type. Value is true if SPEC is valid. */
2948 bool (* valid_p) (Lisp_Object spec);
2949
2950 /* Load IMG which is used on frame F from information contained in
2951 IMG->spec. Value is true if successful. */
2952 bool (* load) (struct frame *f, struct image *img);
2953
2954 /* Free resources of image IMG which is used on frame F. */
2955 void (* free) (struct frame *f, struct image *img);
2956
2957 /* Initialization function (used for dynamic loading of image
2958 libraries on Windows), or NULL if none. */
2959 bool (* init) (void);
2960
2961 /* Next in list of all supported image types. */
2962 struct image_type *next;
2963};
2964
2965
2966/* Structure describing an image. Specific image formats like XBM are 2938/* Structure describing an image. Specific image formats like XBM are
2967 converted into this form, so that display only has to deal with 2939 converted into this form, so that display only has to deal with
2968 this type of image. */ 2940 this type of image. */
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
531struct 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