tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/native/common jk_msg_buff.h
Date Mon, 08 Nov 2004 13:32:21 GMT
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


Mime
View raw message