summaryrefslogtreecommitdiffstats
path: root/apps/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-07-10 20:25:03 +0200
committerRichard Levitte <levitte@openssl.org>2019-07-15 07:00:29 +0200
commit753149d97f8474ff8745a66175b8e4a19fe50743 (patch)
tree50171a57d8093e29d57ab2d6f4e1963a1e4bb801 /apps/include
parent4b62b8ed4989bb6767a38ae813495ba62215c25b (diff)
Move the code for 'openssl list' to its own translation unit.
That makes it easier to work with than going through apps/openssl.c This also moves the implementation of calculate_columns() and makes it generally accessible. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9340)
Diffstat (limited to 'apps/include')
-rw-r--r--apps/include/function.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/include/function.h b/apps/include/function.h
index a0314bb181..4125979305 100644
--- a/apps/include/function.h
+++ b/apps/include/function.h
@@ -26,4 +26,15 @@ typedef struct function_st {
} FUNCTION;
DEFINE_LHASH_OF(FUNCTION);
+
+/* Structure to hold the number of columns to be displayed and the
+ * field width used to display them.
+ */
+typedef struct {
+ int columns;
+ int width;
+} DISPLAY_COLUMNS;
+
+void calculate_columns(FUNCTION *functions, DISPLAY_COLUMNS *dc);
+
#endif