include/fake_file.h

説明を見る。
00001 /* 
00002    Unix SMB/CIFS implementation.
00003    FAKE FILE suppport, for faking up special files windows want access to
00004    Copyright (C) Stefan (metze) Metzmacher      2003
00005    
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015    
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019 */
00020 
00021 #ifndef _FAKE_FILE_H
00022 #define _FAKE_FILE_H
00023 
00024 enum FAKE_FILE_TYPE {
00025         FAKE_FILE_TYPE_NONE = 0,
00026         FAKE_FILE_TYPE_QUOTA    
00027 };
00028 
00029 /*
00030 we now get the unix name --metze
00031 */
00032 #define FAKE_FILE_NAME_QUOTA_WIN32      "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION"
00033 #define FAKE_FILE_NAME_QUOTA_UNIX       "$Extend/$Quota:$Q:$INDEX_ALLOCATION"
00034 
00035 typedef struct _FAKE_FILE_HANDLE {
00036         enum FAKE_FILE_TYPE type;
00037         TALLOC_CTX *mem_ctx;
00038         void *pd; /* for private data */
00039         void (*free_pd)(void **pd); /* free private_data */
00040 } FAKE_FILE_HANDLE;
00041 
00042 typedef struct _FAKE_FILE {
00043         const char *name;
00044         enum FAKE_FILE_TYPE type;
00045         void *(*init_pd)(TALLOC_CTX *men_ctx);
00046         void (*free_pd)(void **pd);
00047 } FAKE_FILE;
00048 
00049 
00050 #endif /* _FAKE_FILE_H */

Sambaに対してSat Aug 29 21:22:54 2009に生成されました。  doxygen 1.4.7