mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
fc8c0d61a1
Summary: This allows us to use fastmanifest as a directory to drop in the python module. Test Plan: compiles, passes existing tests. Reviewers: lcharignon Reviewed By: lcharignon Subscribers: mitrandir, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D3351021 Signature: t1:3351021:1464284417:6cbcde514ab1fd7b5caa6c83cb5577f3502dbc58
45 lines
1.0 KiB
C
45 lines
1.0 KiB
C
// Copyright 2016-present Facebook. All Rights Reserved.
|
|
//
|
|
// internal_result.h: result codes for internal APIs. obviously, this is for
|
|
// internal use only.
|
|
//
|
|
// no-check-code
|
|
|
|
#ifndef FASTMANIFEST_INTERNAL_RESULT_H
|
|
#define FASTMANIFEST_INTERNAL_RESULT_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef enum {
|
|
ADD_CHILD_OK,
|
|
ADD_CHILD_ILLEGAL_PARENT,
|
|
ADD_CHILD_ILLEGAL_CHILD,
|
|
CONFLICTING_ENTRY_PRESENT,
|
|
NEEDS_LARGER_NODE,
|
|
} node_add_child_result_t;
|
|
|
|
typedef enum {
|
|
REMOVE_CHILD_OK,
|
|
REMOVE_CHILD_ILLEGAL_PARENT,
|
|
REMOVE_CHILD_ILLEGAL_INDEX,
|
|
} node_remove_child_result_t;
|
|
|
|
typedef enum {
|
|
ENLARGE_OK,
|
|
ENLARGE_OOM,
|
|
ENLARGE_ILLEGAL_PARENT,
|
|
ENLARGE_ILLEGAL_INDEX,
|
|
} node_enlarge_child_capacity_code_t;
|
|
typedef struct _node_enlarge_child_capacity_result_t {
|
|
node_enlarge_child_capacity_code_t code;
|
|
struct _node_t *old_child;
|
|
struct _node_t *new_child;
|
|
} node_enlarge_child_capacity_result_t;
|
|
|
|
typedef struct _node_search_children_result_t {
|
|
struct _node_t *child;
|
|
uint32_t child_num;
|
|
} node_search_children_result_t;
|
|
|
|
#endif //FASTMANIFEST_INTERNAL_RESULT_H
|