Ignore:
Timestamp:
May 24, 2009, 7:17:10 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/include/libsmbclient.h

    r206 r221  
    7676#include <sys/types.h>
    7777#include <sys/stat.h>
     78#include <sys/statvfs.h>
    7879#include <fcntl.h>
    7980#include <utime.h>
     
    174175} smbc_smb_encrypt_level;
    175176
     177
     178/**
     179 * Capabilities set in the f_flag field of struct statvfs, from
     180 * smbc_statvfs(). These may be OR-ed together to reflect a full set of
     181 * available capabilities.
     182 */
     183typedef enum smbc_vfs_feature
     184{
     185    /* Defined by POSIX or in Linux include files (low-order bits) */
     186    SMBC_VFS_FEATURE_RDONLY         = (1 << 0),
     187
     188    /* Specific to libsmbclient (high-order bits) */
     189    SMBC_VFS_FEATURE_DFS              = (1 << 28),
     190    SMBC_VFS_FEATURE_CASE_INSENSITIVE = (1 << 29),
     191    SMBC_VFS_FEATURE_NO_UNIXCIFS      = (1 << 30)
     192} smbc_vfs_feature;
    176193
    177194typedef int smbc_bool;
     
    853870smbc_fstat_fn smbc_getFunctionFstat(SMBCCTX *c);
    854871void smbc_setFunctionFstat(SMBCCTX *c, smbc_fstat_fn fn);
     872
     873typedef int (*smbc_statvfs_fn)(SMBCCTX *c,
     874                               char *path,
     875                               struct statvfs *st);
     876smbc_statvfs_fn smbc_getFunctionStatVFS(SMBCCTX *c);
     877void smbc_setFunctionStatVFS(SMBCCTX *c, smbc_statvfs_fn fn);
     878
     879typedef int (*smbc_fstatvfs_fn)(SMBCCTX *c,
     880                                SMBCFILE *file,
     881                                struct statvfs *st);
     882smbc_fstatvfs_fn smbc_getFunctionFstatVFS(SMBCCTX *c);
     883void smbc_setFunctionFstatVFS(SMBCCTX *c, smbc_fstatvfs_fn fn);
    855884
    856885typedef int (*smbc_ftruncate_fn)(SMBCCTX *c,
     
    15931622
    15941623/**@ingroup attribute
     1624 * Get file system information for a specified path.
     1625 *
     1626 * @param url       The smb url to get information for
     1627 *
     1628 * @param st        pointer to a buffer that will be filled with
     1629 *                  standard Unix struct statvfs information.
     1630 *
     1631 * @return          EBADF  filedes is bad.
     1632 *                  - EACCES Permission denied.
     1633 *                  - EBADF fd is not a valid file descriptor
     1634 *                  - EINVAL Problems occurred in the underlying routines
     1635 *                    or smbc_init not called.
     1636 *                  - ENOMEM Out of memory
     1637 *
     1638 * @see             Unix fstatvfs()
     1639 *
     1640 */
     1641int
     1642smbc_statvfs(char *url,
     1643             struct statvfs *st);
     1644
     1645/**@ingroup attribute
     1646 * Get file system information via an file descriptor.
     1647 *
     1648 * @param fd        Open file handle from smbc_open(), smbc_creat(),
     1649 *                  or smbc_opendir()
     1650 *
     1651 * @param st        pointer to a buffer that will be filled with
     1652 *                  standard Unix struct statvfs information.
     1653 *
     1654 * @return          EBADF  filedes is bad.
     1655 *                  - EACCES Permission denied.
     1656 *                  - EBADF fd is not a valid file descriptor
     1657 *                  - EINVAL Problems occurred in the underlying routines
     1658 *                    or smbc_init not called.
     1659 *                  - ENOMEM Out of memory
     1660 *
     1661 * @see             Unix fstatvfs()
     1662 *
     1663 */
     1664int
     1665smbc_fstatvfs(int fd,
     1666              struct statvfs *st);
     1667
     1668
     1669/**@ingroup attribute
    15951670 * Truncate a file given a file descriptor
    15961671 *
     
    26092684                     char *signing_state);
    26102685
     2686/*
     2687 * Wrapper around smbc_set_credentials.
     2688 * Used to set correct credentials that will
     2689 * be used to connect to DFS target share
     2690 * in libsmbclient
     2691 */
     2692
     2693void
     2694smbc_set_credentials_with_fallback(SMBCCTX *ctx,
     2695                                   const char *workgroup,
     2696                                   const char *user,
     2697                                   const char *password);
    26112698
    26122699/**
Note: See TracChangeset for help on using the changeset viewer.