Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 89856 invoked from network); 8 Nov 2004 13:33:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Nov 2004 13:33:02 -0000 Received: (qmail 4793 invoked by uid 500); 8 Nov 2004 13:32:33 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 4721 invoked by uid 500); 8 Nov 2004 13:32:32 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 4661 invoked by uid 500); 8 Nov 2004 13:32:32 -0000 Received: (qmail 4641 invoked by uid 99); 8 Nov 2004 13:32:32 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 08 Nov 2004 05:32:31 -0800 Received: (qmail 89483 invoked by uid 1526); 8 Nov 2004 13:32:21 -0000 Date: 8 Nov 2004 13:32:21 -0000 Message-ID: <20041108133221.89482.qmail@minotaur.apache.org> From: mturk@apache.org To: jakarta-tomcat-connectors-cvs@apache.org Subject: cvs commit: jakarta-tomcat-connectors/jk/native/common jk_msg_buff.h X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N mturk 2004/11/08 05:32:21 Modified: jk/native/common jk_msg_buff.h Log: Format code Revision Changes Path 1.12 +36 -37 jakarta-tomcat-connectors/jk/native/common/jk_msg_buff.h Index: jk_msg_buff.h =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_msg_buff.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- jk_msg_buff.h 8 Oct 2004 07:50:40 -0000 1.11 +++ jk_msg_buff.h 8 Nov 2004 13:32:21 -0000 1.12 @@ -47,124 +47,123 @@ */ - typedef struct jk_msg_buf_t jk_msg_buf_t; +typedef struct jk_msg_buf_t jk_msg_buf_t; /* -------------------- Setup routines -------------------- */ /** Allocate a buffer. */ - jk_msg_buf_t *jk_b_new(jk_pool_t *p); +jk_msg_buf_t *jk_b_new(jk_pool_t *p); /** Set up a buffer with an existing buffer */ - int jk_b_set_buffer(jk_msg_buf_t *msg, unsigned char *data, int buffSize); +int jk_b_set_buffer(jk_msg_buf_t *msg, unsigned char *data, int buffSize); /* * Set up a buffer with a new buffer of buffSize */ - int jk_b_set_buffer_size(jk_msg_buf_t *msg, int buffSize); +int jk_b_set_buffer_size(jk_msg_buf_t *msg, int buffSize); /* * Finalize the buffer before sending - set length fields, etc */ - void jk_b_end(jk_msg_buf_t *msg, int protoh); +void jk_b_end(jk_msg_buf_t *msg, int protoh); /* * Recycle the buffer - z for a new invocation */ - void jk_b_reset(jk_msg_buf_t *msg); +void jk_b_reset(jk_msg_buf_t *msg); /* * Return the buffer body */ - unsigned char *jk_b_get_buff(jk_msg_buf_t *msg); +unsigned char *jk_b_get_buff(jk_msg_buf_t *msg); /* * Return the current reading position */ - unsigned int jk_b_get_pos(jk_msg_buf_t *msg); +unsigned int jk_b_get_pos(jk_msg_buf_t *msg); /* * Buffer size */ - int jk_b_get_size(jk_msg_buf_t *msg); +int jk_b_get_size(jk_msg_buf_t *msg); - void jk_b_set_len(jk_msg_buf_t *msg, int len); +void jk_b_set_len(jk_msg_buf_t *msg, int len); - void jk_b_set_pos(jk_msg_buf_t *msg, int pos); +void jk_b_set_pos(jk_msg_buf_t *msg, int pos); /* * Get the message length for incomming buffers * or the current length for outgoing */ - unsigned int jk_b_get_len(jk_msg_buf_t *msg); +unsigned int jk_b_get_len(jk_msg_buf_t *msg); /* -------------------- Real encoding -------------------- */ - int jk_b_append_byte(jk_msg_buf_t *msg, unsigned char val); +int jk_b_append_byte(jk_msg_buf_t *msg, unsigned char val); - int jk_b_append_bytes(jk_msg_buf_t *msg, - const unsigned char *param, int len); +int jk_b_append_bytes(jk_msg_buf_t *msg, + const unsigned char *param, int len); - int jk_b_append_int(jk_msg_buf_t *msg, unsigned short val); +int jk_b_append_int(jk_msg_buf_t *msg, unsigned short val); - int jk_b_append_long(jk_msg_buf_t *msg, unsigned long val); +int jk_b_append_long(jk_msg_buf_t *msg, unsigned long val); - int jk_b_append_string(jk_msg_buf_t *msg, const char *param); +int jk_b_append_string(jk_msg_buf_t *msg, const char *param); #ifdef AS400 - int jk_b_append_asciistring(jk_msg_buf_t *msg, const char *param); +int jk_b_append_asciistring(jk_msg_buf_t *msg, const char *param); #endif - int jk_b_append_bytes(jk_msg_buf_t *msg, - const unsigned char *param, int len); +int jk_b_append_bytes(jk_msg_buf_t *msg, + const unsigned char *param, int len); /* -------------------- Decoding -------------------- */ /** Get a byte from the current position */ - unsigned char jk_b_get_byte(jk_msg_buf_t *msg); +unsigned char jk_b_get_byte(jk_msg_buf_t *msg); /** Get an int from the current position */ - unsigned short jk_b_get_int(jk_msg_buf_t *msg); +unsigned short jk_b_get_int(jk_msg_buf_t *msg); /** Get a long from the current position */ - unsigned long jk_b_get_long(jk_msg_buf_t *msg); +unsigned long jk_b_get_long(jk_msg_buf_t *msg); /** Get a String from the current position */ - unsigned char *jk_b_get_string(jk_msg_buf_t *msg); +unsigned char *jk_b_get_string(jk_msg_buf_t *msg); /** Get Bytes from the current position */ - int jk_b_get_bytes(jk_msg_buf_t *msg, unsigned char *buf, int len); +int jk_b_get_bytes(jk_msg_buf_t *msg, unsigned char *buf, int len); /** Get a byte from an arbitrary position */ - unsigned char jk_b_pget_byte(jk_msg_buf_t *msg, int pos); +unsigned char jk_b_pget_byte(jk_msg_buf_t *msg, int pos); /** Get an int from an arbitrary position */ - unsigned short jk_b_pget_int(jk_msg_buf_t *msg, int pos); +unsigned short jk_b_pget_int(jk_msg_buf_t *msg, int pos); /** Get a long from an arbitrary position */ - unsigned long jk_b_pget_long(jk_msg_buf_t *msg, int pos); +unsigned long jk_b_pget_long(jk_msg_buf_t *msg, int pos); /* --------------------- Help ------------------------ */ - void jk_dump_buff(jk_logger_t *l, - const char *file, - int line, int level, char *what, jk_msg_buf_t *msg); +void jk_dump_buff(jk_logger_t *l, + const char *file, + int line, int level, char *what, jk_msg_buf_t *msg); /** Copy a msg buf into another one */ - int jk_b_copy(jk_msg_buf_t *smsg, jk_msg_buf_t *dmsg); +int jk_b_copy(jk_msg_buf_t *smsg, jk_msg_buf_t *dmsg); #ifdef __cplusplus } -#endif /* __cplusplus */ - -#endif /* JK_MSG_BUF_H */ +#endif /* __cplusplus */ +#endif /* JK_MSG_BUF_H */ --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org