various: unexport a few internal structs
We don't expose destructors for these internal structs already. Let's make the struct itself implementation detail too.
This commit is contained in:
@@ -16,6 +16,15 @@
|
||||
#include "strv.h"
|
||||
#include "tmpfile-util-label.h"
|
||||
|
||||
typedef struct EditFile {
|
||||
EditFileContext *context;
|
||||
char *path;
|
||||
char *original_path;
|
||||
char **comment_paths;
|
||||
char *temp;
|
||||
unsigned line;
|
||||
} EditFile;
|
||||
|
||||
void edit_file_context_done(EditFileContext *context) {
|
||||
int r;
|
||||
|
||||
|
||||
+2
-12
@@ -7,18 +7,8 @@
|
||||
#define DROPIN_MARKER_END "### Edits below this comment will be discarded"
|
||||
|
||||
typedef struct EditFile EditFile;
|
||||
typedef struct EditFileContext EditFileContext;
|
||||
|
||||
struct EditFile {
|
||||
EditFileContext *context;
|
||||
char *path;
|
||||
char *original_path;
|
||||
char **comment_paths;
|
||||
char *temp;
|
||||
unsigned line;
|
||||
};
|
||||
|
||||
struct EditFileContext {
|
||||
typedef struct EditFileContext {
|
||||
EditFile *files;
|
||||
size_t n_files;
|
||||
const char *marker_start;
|
||||
@@ -26,7 +16,7 @@ struct EditFileContext {
|
||||
bool remove_parent;
|
||||
bool overwrite_with_origin; /* Always overwrite target with original file. */
|
||||
bool stdin; /* Read contents from stdin instead of launching an editor. */
|
||||
};
|
||||
} EditFileContext;
|
||||
|
||||
void edit_file_context_done(EditFileContext *context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user