Changeset 988 for vendor/current/source3/include/libsmb_internal.h
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
-
vendor/current/source3/include/libsmb_internal.h (modified) (19 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/include/libsmb_internal.h
r740 r988 1 /* 1 /* 2 2 Unix SMB/Netbios implementation. 3 3 SMB client library implementation … … 5 5 Copyright (C) Richard Sharpe 2000, 2002 6 6 Copyright (C) John Terpstra 2000 7 Copyright (C) Tom Jansen (Ninja ISD) 2002 7 Copyright (C) Tom Jansen (Ninja ISD) 2002 8 8 Copyright (C) Derrell Lipman 2003-2008 9 9 Copyright (C) Jeremy Allison 2007, 2008 10 10 11 11 This program is free software; you can redistribute it and/or modify 12 12 it under the terms of the GNU General Public License as published by 13 13 the Free Software Foundation; either version 3 of the License, or 14 14 (at your option) any later version. 15 15 16 16 This program is distributed in the hope that it will be useful, 17 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 19 GNU General Public License for more details. 20 20 21 21 You should have received a copy of the GNU General Public License 22 22 along with this program. If not, see <http://www.gnu.org/licenses/>. … … 41 41 typedef struct DOS_ATTR_DESC { 42 42 int mode; 43 SMB_OFF_Tsize;43 size; 44 44 time_t create_time; 45 45 time_t access_time; … … 49 49 } DOS_ATTR_DESC; 50 50 51 52 53 54 51 55 52 56 /* … … 75 79 bool no_pathinfo; 76 80 bool no_pathinfo2; 81 77 82 bool no_nt_session; 78 83 struct policy_handle pol; 84 79 85 80 86 SMBCSRV *next, *prev; 81 82 87 }; 83 88 84 /* 85 * Keep directory entries in a list 89 /* 90 * Keep directory entries in a list 86 91 */ 87 92 struct smbc_dir_list { … … 93 98 /* 94 99 * Structure for open file management 95 */ 100 */ 96 101 struct _SMBCFILE { 97 int cli_fd; 102 int cli_fd; 103 /* 104 * cache of cli_state we opened cli_fd on. 105 * Due to DFS can be a subsidiary connection to srv->cli 106 */ 107 struct cli_state *targetcli; 98 108 char *fname; 99 SMB_OFF_Toffset;109 offset; 100 110 struct _SMBCSRV *srv; 101 111 bool file; … … 133 143 */ 134 144 SMBCSRV * servers; 135 145 136 146 /* 137 147 * open file/dir list … … 167 177 168 178 /* 169 * Should we attempt UNIX smb encryption ? 179 * Should we attempt UNIX smb encryption ? 170 180 * Set to 0 if we should never attempt, set to 1 if 171 181 * encryption requested, set to 2 if encryption required. … … 234 244 #endif 235 245 236 #if 0 /* None available yet */237 246 /* SMB high-level functions */ 238 247 struct 239 248 { 249 250 240 251 } smb; 241 252 242 #endif 253 uint16_t port; 243 254 }; 244 255 … … 248 259 SMBCSRV * newsrv, 249 260 const char * server, 250 const char * share, 261 const char * share, 251 262 const char * workgroup, 252 263 const char * username); … … 254 265 SMBCSRV * 255 266 SMBC_get_cached_server(SMBCCTX * context, 256 const char * server, 267 const char * server, 257 268 const char * share, 258 269 const char * workgroup, … … 331 342 int 332 343 SMBC_rename_ctx(SMBCCTX *ocontext, 333 const char *oname, 344 const char *oname, 334 345 SMBCCTX *ncontext, 335 346 const char *nname); 347 348 349 350 351 352 336 353 337 354 … … 360 377 size_t count); 361 378 379 380 381 382 383 384 385 386 362 387 int 363 388 SMBC_close_ctx(SMBCCTX *context, … … 367 392 SMBC_getatr(SMBCCTX * context, 368 393 SMBCSRV *srv, 369 c har *path,370 uint16 *mode,371 SMB_OFF_T*size,394 char *path, 395 uint16 *mode, 396 *size, 372 397 struct timespec *create_time_ts, 373 398 struct timespec *access_time_ts, … … 377 402 378 403 bool 379 SMBC_setatr(SMBCCTX * context, SMBCSRV *srv, char *path, 404 SMBC_setatr(SMBCCTX * context, SMBCSRV *srv, char *path, 380 405 time_t create_time, 381 406 time_t access_time, 382 407 time_t write_time, 383 408 time_t change_time, 384 uint16 mode);409 uint16 mode); 385 410 386 411 off_t … … 412 437 char **pp_workgroup, 413 438 char **pp_server, 439 414 440 char **pp_share, 415 441 char **pp_path, … … 449 475 SMBC_remove_unused_server(SMBCCTX * context, 450 476 SMBCSRV * srv); 451 452 void453 SMBC_call_auth_fn(TALLOC_CTX *ctx,454 SMBCCTX *context,455 const char *server,456 const char *share,457 char **pp_workgroup,458 char **pp_username,459 char **pp_password);460 477 461 478 void … … 479 496 bool connect_if_not_found, 480 497 const char *server, 498 481 499 const char *share, 482 500 char **pp_workgroup, … … 488 506 SMBCCTX *context, 489 507 const char *server, 508 490 509 const char *share, 491 510 char **pp_workgroup,
Note:
See TracChangeset
for help on using the changeset viewer.
