Commit 6b0461be authored by Sebastian Ramacher's avatar Sebastian Ramacher
Browse files

Hide an internal type

types.h is for types accessible to plugins.
parent cadb6f20
Pipeline #458 failed with stages
in 39 seconds
/* 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
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment