mirror of
				https://github.com/simon987/sist2.git
				synced 2025-10-31 07:56:53 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			563 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			563 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef SCAN_SCAN_MSDOC_H
 | |
| #define SCAN_SCAN_MSDOC_H
 | |
| 
 | |
| #include "../scan.h"
 | |
| 
 | |
| typedef struct {
 | |
|     long content_size;
 | |
|     int tn_size;
 | |
|     log_callback_t log;
 | |
|     logf_callback_t logf;
 | |
|     store_callback_t store;
 | |
|     unsigned int msdoc_mime;
 | |
| } scan_msdoc_ctx_t;
 | |
| 
 | |
| __always_inline
 | |
| static int is_msdoc(scan_msdoc_ctx_t *ctx, unsigned int mime) {
 | |
|     return mime == ctx->msdoc_mime;
 | |
| }
 | |
| 
 | |
| void parse_msdoc(scan_msdoc_ctx_t *ctx, vfile_t *f, document_t *doc);
 | |
| 
 | |
| void parse_msdoc_text(scan_msdoc_ctx_t *ctx, document_t *doc, FILE *file_in, void* buf, size_t buf_len);
 | |
| 
 | |
| #endif
 |