- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
45 lines
948 B
C
45 lines
948 B
C
/*
|
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
*/
|
|
|
|
#include "gui.h"
|
|
|
|
int main(void)
|
|
{
|
|
gui *g;
|
|
widget *w, *c1, *c2, *l, *plot, *tl;
|
|
int tlcol;
|
|
|
|
g = gui_init();
|
|
|
|
c1 = new_container(g, VERTICAL);
|
|
c2 = new_container(g, HORIZONTAL);
|
|
|
|
l = new_label(g, "this is a good label");
|
|
widget_add_child(g, c2, l, 0);
|
|
l = new_label(g, "this is another good label");
|
|
widget_add_child(g, c2, l, -1);
|
|
|
|
l = new_label(g, "OH! WHAT A LABEL!");
|
|
widget_add_child(g, c1, l, -1);
|
|
|
|
widget_add_child(g, c1, c2, 0);
|
|
|
|
plot = new_xy_plot(g, 100, 100, "xy plot test", 30);
|
|
widget_add_child(g, c1, plot, -1);
|
|
|
|
tlcol = new_color(g, "#ddf");
|
|
tl = new_textlist(g, 300, 10, tlcol);
|
|
widget_add_child(g, c1, tl, -1);
|
|
|
|
textlist_add(g, tl, "hello", -1, FOREGROUND_COLOR);
|
|
textlist_add(g, tl, "world", -1, FOREGROUND_COLOR);
|
|
|
|
w = new_toplevel_window(g, 500, 400, "test window");
|
|
widget_add_child(g, w, c1, 0);
|
|
|
|
gui_loop(g);
|
|
|
|
return 0;
|
|
}
|