~ubuntu-branches/ubuntu/precise/corosync/precise-proposed

« back to all changes in this revision

Viewing changes to include/corosync/lcr/lcr_ckpt.h

  • Committer: Bazaar Package Importer
  • Author(s): Ante Karamatic
  • Date: 2009-08-21 09:29:56 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090821092956-w9qxxxx3zeoh8dem
Tags: 1.0.0-4ubuntu2
* debian/control:
  - 'Ubuntu Developers' instead of 'Ubuntu Core Developers'
    as maintainer
  - Bump debhelper dependecy to 7

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Copyright (C) 2006 Steven Dake (sdake@redhat.com)
3
3
 *
4
4
 * This software licensed under BSD license, the text of which follows:
5
 
 * 
 
5
 *
6
6
 * Redistribution and use in source and binary forms, with or without
7
7
 * modification, are permitted provided that the following conditions are met:
8
8
 *
34
34
/*
35
35
 * Write data of length data_len into the section name for ckpt_handle
36
36
 */
37
 
int lcr_ckpt_section_write (void *ckpt_handle, char *name, void *data, int data_len);
 
37
int lcr_ckpt_section_write (void *ckpt_handle, const char *name,
 
38
                            const void *data, size_t data_len);
38
39
 
39
40
/*
40
 
 * Read the section name into data with data len.  Returned in data_len is the 
 
41
 * Read the section name into data with data len.  Returned in data_len is the
41
42
 * actual data read from ckpt_handle.
42
43
 */
43
 
int lcr_ckpt_section_read (void *ckpt_handle, char *name, void *data, int *data_len);
 
44
int lcr_ckpt_section_read (void *ckpt_handle, const char *name,
 
45
                           void *data, size_t *data_len);
44
46
 
45
47
/*
46
48
 * Initialize the section iterator to the first section