~ubuntu-branches/ubuntu/hardy/gnupg/hardy-updates

« back to all changes in this revision

Viewing changes to include/util.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-12-16 16:57:39 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051216165739-v0m2d1you6hd8jho
Tags: upstream-1.4.2
ImportĀ upstreamĀ versionĀ 1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *
17
17
 * You should have received a copy of the GNU General Public License
18
18
 * along with this program; if not, write to the Free Software
19
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 
20
 * USA.
20
21
 */
21
22
#ifndef G10_UTIL_H
22
23
#define G10_UTIL_H
149
150
/*-- miscutil.c --*/
150
151
u32 make_timestamp(void);
151
152
u32 scan_isodatestr( const char *string );
152
 
u32 add_days_to_timestamp( u32 stamp, u16 days );
153
153
const char *strtimevalue( u32 stamp );
154
154
const char *strtimestamp( u32 stamp ); /* GMT */
155
155
const char *isotimestamp( u32 stamp ); /* GMT with hh:mm:ss */
223
223
#define memmove(d, s, n) bcopy((s), (d), (n))
224
224
#endif
225
225
 
 
226
/*-- membuf.c --*/
 
227
/* The definition of the structure is private, we only need it here,
 
228
   so it can be allocated on the stack. */
 
229
struct private_membuf_s {
 
230
  size_t len;      
 
231
  size_t size;     
 
232
  char *buf;       
 
233
  int out_of_core; 
 
234
};
 
235
 
 
236
typedef struct private_membuf_s membuf_t;
 
237
 
 
238
void init_membuf (membuf_t *mb, int initiallen);
 
239
void put_membuf  (membuf_t *mb, const void *buf, size_t len);
 
240
void *get_membuf (membuf_t *mb, size_t *len);
 
241
 
 
242
 
 
243
 
226
244
#if defined (_WIN32)
227
245
/*-- w32reg.c --*/
228
246
char *read_w32_registry_string( const char *root,
233
251
/*-- strgutil.c --*/
234
252
int vasprintf (char **result, const char *format, va_list args);
235
253
int asprintf (char **buf, const char *fmt, ...);
236
 
#endif
 
254
#endif /*_WIN32*/
 
255
 
237
256
 
238
257
/**** other missing stuff ****/
239
258
#ifndef HAVE_ATEXIT  /* For SunOS */