src/lib/image.h
author Tero Marttila <terom@qmsk.net>
Sat, 15 Jul 2017 11:42:22 +0300
changeset 183 1f56a81f0c69
parent 56 d5e3089906da
permissions -rw-r--r--
Dockerfile.tileserver: tweak /srv/pngtile/images path
#ifndef PNGTILE_IMAGE_H
#define PNGTILE_IMAGE_H

/**
 * @file
 *
 * Internal pt_image state
 */
#include "pngtile.h"

struct pt_image {
    /** Associated global state */
    struct pt_ctx *ctx;

    /** Path to .png */
    char *path;
    
    /** Cache object */
    struct pt_cache *cache;

    /** Image info */
    struct pt_image_info info;
};

/**
 * Open the image's FILE
 */
int pt_image_open_file (struct pt_image *image, FILE **file_ptr);

#endif