user_interaction.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00035 #ifndef USER_INTERACTION_H
00036 #define USER_INTERACTION_H
00037
00038 #include "translations.h"
00039
00040 NAMESPACE_LIBDAR_START
00041
00042 #ifdef __cplusplus
00043 extern "C"
00044 {
00045 #endif
00046
00079
00080
00094 typedef void* (*dar_warning_callback)(char* msg, void* context);
00111 typedef bool (*dar_answer_callback)(char* msg, void* context);
00132 typedef char* (*dar_string_callback)(char* msg, bool echo, void* context);
00133
00225 typedef void* (*dar_listing_callback)( char* flag,
00226 char* perm,
00227 char* uid,
00228 char* gid,
00229 char* size,
00230 char* date,
00231 char* filename,
00232 bool is_dir,
00233 bool has_children,
00234 void* context
00235 );
00236
00237
00238
00249 typedef struct
00250 {
00251
00252 dar_warning_callback warning;
00253 dar_answer_callback answer;
00254 dar_string_callback string;
00256
00257 dar_listing_callback listing;
00259 intptr_t : __WORDSIZE;
00260 intptr_t : __WORDSIZE;
00261
00262
00266 bool verbose : 1;
00267
00268 intptr_t : 31;
00269
00275 void* context;
00276
00277 } dar_user_interaction_struct;
00278
00280 DLLIMPORT bool dar_user_interaction_struct_is_valid(dar_user_interaction_struct obj);
00281
00287 #ifdef __cplusplus
00288 }
00289 #endif
00290
00291
00292
00293
00294 NAMESPACE_LIBDAR_END
00295
00296
00297
00298
00299 #endif
00300
00301
00302
00303
00304