Changeset 2bb6d04 in mainline for uspace/lib/draw/include/draw/codec.h


Ignore:
Timestamp:
2019-06-25T14:58:16Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aeba767
Parents:
cd9531d3
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-13 12:14:16)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-25 14:58:16)
Message:

Curb the proliferation of libdraw headers

libdraw provides a lot of ambiguously named headers, which makes it
confusing. This change merges the subdirectories into single headers,
and moves all headers into draw subdirectory, so that it's obvious
at a glance what library the header belongs to.

Compare:

#include <path.h>
#include <source.h>
#include <font/bitmap_backend.h>
#include <font/pcf.h>

vs.

#include <draw/path.h>
#include <draw/source.h>
#include <draw/font.h>

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/draw/include/draw/codec.h

    rcd9531d3 r2bb6d04  
    11/*
    22 * Copyright (c) 2014 Martin Decky
     3 * Copyright (c) 2011 Petr Koupy
    34 * All rights reserved.
    45 *
     
    3435 */
    3536
    36 #ifndef DRAW_CODEC_TGA_GZ_H_
    37 #define DRAW_CODEC_TGA_GZ_H_
     37#ifndef DRAW_CODEC_H_
     38#define DRAW_CODEC_H_
    3839
    3940#include <stddef.h>
    40 #include "../surface.h"
     41#include "surface.h"
    4142
    4243extern surface_t *decode_tga_gz(void *, size_t, surface_flags_t);
    4344extern bool encode_tga_gz(surface_t *, void **, size_t *);
     45extern surface_t *decode_tga(void *, size_t, surface_flags_t);
     46extern bool encode_tga(surface_t *, void **, size_t *);
     47extern surface_t *decode_webp(void *, size_t, surface_flags_t);
     48extern bool encode_webp(surface_t *, void **, size_t *);
    4449
    4550#endif
Note: See TracChangeset for help on using the changeset viewer.