summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e5dc4ed)
raw | patch | inline | side by side (parent: e5dc4ed)
author | Thomas Vander Stichele <thomas@apestaart.org> | |
Thu, 5 Jun 2003 21:33:03 +0000 (21:33 +0000) | ||
committer | Thomas Vander Stichele <thomas@apestaart.org> | |
Thu, 5 Jun 2003 21:33:03 +0000 (21:33 +0000) |
Original commit message from CVS:
make functions static
taaz patch
make functions static
taaz patch
gst/elements/gstmd5sink.c | patch | blob | history | |
plugins/elements/gstmd5sink.c | patch | blob | history |
index d7d66adc2e1d7daf324927d77fe9d017f523a946..ca43fc23b2286271dc0b4b69918e1aad1648620d 100644 (file)
/* MD5 stuff */
-void md5_init_ctx (GstMD5Sink *ctx);
-gpointer md5_read_ctx (GstMD5Sink *ctx, gpointer resbuf);
-gpointer md5_finish_ctx (GstMD5Sink *ctx, gpointer resbuf);
-void md5_process_bytes (const void *buffer, size_t len, GstMD5Sink *ctx);
-void md5_process_block (const void *buffer, size_t len, GstMD5Sink *ctx);
+static void md5_init_ctx (GstMD5Sink *ctx);
+static gpointer md5_read_ctx (GstMD5Sink *ctx, gpointer resbuf);
+static gpointer md5_finish_ctx (GstMD5Sink *ctx, gpointer resbuf);
+static void md5_process_bytes (const void *buffer, size_t len, GstMD5Sink *ctx);
+static void md5_process_block (const void *buffer, size_t len, GstMD5Sink *ctx);
/* This array contains the bytes used to pad the buffer to the next
64-byte boundary. (RFC 1321, 3.1: Step 1) */
/* MD5 functions */
/* Initialize structure containing state of computation.
(RFC 1321, 3.3: Step 3) */
-void
+static void
md5_init_ctx (GstMD5Sink *ctx)
{
ctx->A = 0x67452301;
IMPORTANT: On some systems it is required that RESBUF is correctly
aligned for a 32 bits value. */
-gpointer
+static gpointer
md5_finish_ctx (GstMD5Sink *ctx, gpointer resbuf)
{
/* Take yet unprocessed bytes into account. */
IMPORTANT: On some systems it is required that RESBUF is correctly
aligned for a 32 bits value. */
-gpointer
+static gpointer
md5_read_ctx (GstMD5Sink *ctx, gpointer resbuf)
{
((guint32 *) resbuf)[0] = GUINT32_TO_LE (ctx->A);
return resbuf;
}
-void
+static void
md5_process_bytes (const void *buffer, size_t len, GstMD5Sink *ctx)
{
/*const void aligned_buffer = buffer; */
/* Process LEN bytes of BUFFER, accumulating context into CTX.
It is assumed that LEN % 64 == 0. */
-void
+static void
md5_process_block (const void *buffer, size_t len, GstMD5Sink *ctx)
{
guint32 correct_words[16];
index d7d66adc2e1d7daf324927d77fe9d017f523a946..ca43fc23b2286271dc0b4b69918e1aad1648620d 100644 (file)
/* MD5 stuff */
-void md5_init_ctx (GstMD5Sink *ctx);
-gpointer md5_read_ctx (GstMD5Sink *ctx, gpointer resbuf);
-gpointer md5_finish_ctx (GstMD5Sink *ctx, gpointer resbuf);
-void md5_process_bytes (const void *buffer, size_t len, GstMD5Sink *ctx);
-void md5_process_block (const void *buffer, size_t len, GstMD5Sink *ctx);
+static void md5_init_ctx (GstMD5Sink *ctx);
+static gpointer md5_read_ctx (GstMD5Sink *ctx, gpointer resbuf);
+static gpointer md5_finish_ctx (GstMD5Sink *ctx, gpointer resbuf);
+static void md5_process_bytes (const void *buffer, size_t len, GstMD5Sink *ctx);
+static void md5_process_block (const void *buffer, size_t len, GstMD5Sink *ctx);
/* This array contains the bytes used to pad the buffer to the next
64-byte boundary. (RFC 1321, 3.1: Step 1) */
/* MD5 functions */
/* Initialize structure containing state of computation.
(RFC 1321, 3.3: Step 3) */
-void
+static void
md5_init_ctx (GstMD5Sink *ctx)
{
ctx->A = 0x67452301;
IMPORTANT: On some systems it is required that RESBUF is correctly
aligned for a 32 bits value. */
-gpointer
+static gpointer
md5_finish_ctx (GstMD5Sink *ctx, gpointer resbuf)
{
/* Take yet unprocessed bytes into account. */
IMPORTANT: On some systems it is required that RESBUF is correctly
aligned for a 32 bits value. */
-gpointer
+static gpointer
md5_read_ctx (GstMD5Sink *ctx, gpointer resbuf)
{
((guint32 *) resbuf)[0] = GUINT32_TO_LE (ctx->A);
return resbuf;
}
-void
+static void
md5_process_bytes (const void *buffer, size_t len, GstMD5Sink *ctx)
{
/*const void aligned_buffer = buffer; */
/* Process LEN bytes of BUFFER, accumulating context into CTX.
It is assumed that LEN % 64 == 0. */
-void
+static void
md5_process_block (const void *buffer, size_t len, GstMD5Sink *ctx)
{
guint32 correct_words[16];