Hide an internal type

types.h is for types accessible to plugins.
This commit is contained in:
Sebastian Ramacher 2022-05-08 10:36:08 +02:00
parent cadb6f2029
commit 6b0461be23
3 changed files with 7 additions and 3 deletions

View File

@ -1,6 +1,7 @@
/* SPDX-License-Identifier: Zlib */ /* SPDX-License-Identifier: Zlib */
#include "content-type.h" #include "content-type.h"
#include "macros.h"
#include <girara/utils.h> #include <girara/utils.h>
#ifdef WITH_MAGIC #ifdef WITH_MAGIC

View File

@ -3,7 +3,9 @@
#ifndef ZATHURA_CONTENT_TYPE_H #ifndef ZATHURA_CONTENT_TYPE_H
#define 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. * 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 * @param path file name
* @return content type of path, needs to freeed with g_free. * @return content type of path, needs to freeed with g_free.
*/ */
char* zathura_content_type_guess(zathura_content_type_context_t* context, char* zathura_content_type_guess(zathura_content_type_context_t* context, const char* path,
const char* path,
const girara_list_t* supported_content_types); const girara_list_t* supported_content_types);
#endif #endif

View File

@ -90,6 +90,8 @@ typedef enum {
/* forward declaration for types from database.h */ /* forward declaration for types from database.h */
typedef struct _ZathuraDatabase zathura_database_t; 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 struct zathura_s
{ {