mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-18 13:53:46 +00:00
libgimpmath: remove all deprecated cruft
This commit is contained in:
parent
1f0d296eb6
commit
74d78e7009
|
@ -63,8 +63,6 @@ libgimpmath_@GIMP_API_VERSION@_la_SOURCES = \
|
|||
gimpmathtypes.h \
|
||||
gimpmatrix.c \
|
||||
gimpmatrix.h \
|
||||
gimpmd5.c \
|
||||
gimpmd5.h \
|
||||
gimpvector.c \
|
||||
gimpvector.h
|
||||
|
||||
|
@ -72,7 +70,6 @@ libgimpmathinclude_HEADERS = \
|
|||
gimpmath.h \
|
||||
gimpmathtypes.h \
|
||||
gimpmatrix.h \
|
||||
gimpmd5.h \
|
||||
gimpvector.h
|
||||
|
||||
libgimpmath_@GIMP_API_VERSION@_la_LDFLAGS = \
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
#include <libgimpmath/gimpmathtypes.h>
|
||||
|
||||
#include <libgimpmath/gimpmatrix.h>
|
||||
#include <libgimpmath/gimpmd5.h>
|
||||
#include <libgimpmath/gimpvector.h>
|
||||
|
||||
#undef __GIMP_MATH_H_INSIDE__
|
||||
|
|
|
@ -1,53 +0,0 @@
|
|||
/* LIBGIMP - The GIMP Library
|
||||
*
|
||||
* gimpmd5.c
|
||||
*
|
||||
* Use of this code is deprecated! Use %GChecksum from GLib instead.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "gimpmathtypes.h"
|
||||
|
||||
#include "gimpmd5.h"
|
||||
|
||||
|
||||
/**
|
||||
* SECTION: gimpmd5
|
||||
* @title: GimpMD5
|
||||
* @short_description: The MD5 message-digest algorithm
|
||||
*
|
||||
* The MD5 message-digest algorithm
|
||||
**/
|
||||
|
||||
|
||||
/**
|
||||
* gimp_md5_get_digest:
|
||||
* @buffer: byte buffer
|
||||
* @buffer_size: buffer size (in bytes) or -1 if @buffer is nul-terminated.
|
||||
* @digest: 16 bytes buffer receiving the hash code.
|
||||
*
|
||||
* This function is deprecated! Use %GChecksum from GLib instead.
|
||||
*
|
||||
* Get the md5 hash of a buffer. The result is put in the 16 bytes
|
||||
* buffer @digest. For more information see RFC 1321.
|
||||
**/
|
||||
void
|
||||
gimp_md5_get_digest (const gchar *buffer,
|
||||
gint buffer_size,
|
||||
guchar digest[16])
|
||||
{
|
||||
GChecksum *checksum;
|
||||
gsize len = 16;
|
||||
|
||||
g_return_if_fail (buffer != NULL);
|
||||
g_return_if_fail (digest != NULL);
|
||||
|
||||
checksum = g_checksum_new (G_CHECKSUM_MD5);
|
||||
|
||||
g_checksum_update (checksum, (const guchar *) buffer, buffer_size);
|
||||
g_checksum_get_digest (checksum, digest, &len);
|
||||
g_checksum_free (checksum);
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
/* LIBGIMP - The GIMP Library
|
||||
*
|
||||
* gimpmd5.h
|
||||
*
|
||||
* Use of this code is deprecated! Use %GChecksum from GLib instead.
|
||||
*/
|
||||
|
||||
#if !defined (__GIMP_MATH_H_INSIDE__) && !defined (GIMP_MATH_COMPILATION)
|
||||
#error "Only <libgimpmath/gimpmath.h> can be included directly."
|
||||
#endif
|
||||
|
||||
#ifndef __GIMP_MD5_H__
|
||||
#define __GIMP_MD5_H__
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/* For information look into the C source or the html documentation */
|
||||
|
||||
GIMP_DEPRECATED_FOR(GChecksum)
|
||||
void gimp_md5_get_digest (const gchar *buffer,
|
||||
gint buffer_size,
|
||||
guchar digest[16]);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GIMP_MD5_H__ */
|
Loading…
Reference in a new issue