File: pps-document-security.c

package info (click to toggle)
papers 49.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,140 kB
  • sloc: ansic: 37,721; sh: 197; xml: 127; makefile: 112
file content (32 lines) | stat: -rw-r--r-- 927 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// SPDX-License-Identifier: GPL-2.0-or-later
/* pps-document-links.h
 *  this file is part of papers, a gnome document_links viewer
 *
 * Copyright (C) 2004 Red Hat, Inc.
 */

#include "config.h"

#include "pps-document-security.h"

G_DEFINE_INTERFACE (PpsDocumentSecurity, pps_document_security, 0)

static void
pps_document_security_default_init (PpsDocumentSecurityInterface *klass)
{
}

gboolean
pps_document_security_has_document_security (PpsDocumentSecurity *document_security)
{
	PpsDocumentSecurityInterface *iface = PPS_DOCUMENT_SECURITY_GET_IFACE (document_security);
	return iface->has_document_security (document_security);
}

void
pps_document_security_set_password (PpsDocumentSecurity *document_security,
                                    const char *password)
{
	PpsDocumentSecurityInterface *iface = PPS_DOCUMENT_SECURITY_GET_IFACE (document_security);
	iface->set_password (document_security, password);
}