mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-27 14:26:02 +01:00
Hide an internal type
types.h is for types accessible to plugins.
This commit is contained in:
parent
cadb6f2029
commit
6b0461be23
3 changed files with 7 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
/* SPDX-License-Identifier: Zlib */
|
||||
|
||||
#include "content-type.h"
|
||||
#include "macros.h"
|
||||
|
||||
#include <girara/utils.h>
|
||||
#ifdef WITH_MAGIC
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
#ifndef ZATHURA_CONTENT_TYPE_H
|
||||
#define ZATHURA_CONTENT_TYPE_H
|
||||
|
||||
#include "types.h"
|
||||
#include <girara/datastructures.h>
|
||||
|
||||
typedef struct zathura_content_type_context_s zathura_content_type_context_t;
|
||||
|
||||
/**
|
||||
* Create new context for content type detection.
|
||||
|
@ -26,8 +28,7 @@ void zathura_content_type_free(zathura_content_type_context_t* context);
|
|||
* @param path file name
|
||||
* @return content type of path, needs to freeed with g_free.
|
||||
*/
|
||||
char* zathura_content_type_guess(zathura_content_type_context_t* context,
|
||||
const char* path,
|
||||
char* zathura_content_type_guess(zathura_content_type_context_t* context, const char* path,
|
||||
const girara_list_t* supported_content_types);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -90,6 +90,8 @@ typedef enum {
|
|||
|
||||
/* forward declaration for types from database.h */
|
||||
typedef struct _ZathuraDatabase zathura_database_t;
|
||||
/* forward declaration for types from content-type.h */
|
||||
typedef struct zathura_content_type_context_s zathura_content_type_context_t;
|
||||
|
||||
struct zathura_s
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue