Move some constants
This commit is contained in:
parent
8c50154046
commit
8df9290cf2
|
@ -1,5 +1,9 @@
|
||||||
#include "MyItem.h"
|
#include "MyItem.h"
|
||||||
|
|
||||||
|
// File name and path limits
|
||||||
|
#define name_max_length 256
|
||||||
|
#define path_max_length 4096
|
||||||
|
|
||||||
struct _MyItem
|
struct _MyItem
|
||||||
{
|
{
|
||||||
GObject parent_instance;
|
GObject parent_instance;
|
||||||
|
|
|
@ -4,10 +4,6 @@
|
||||||
|
|
||||||
G_DECLARE_FINAL_TYPE(MyItem, my_item, MY, ITEM, GObject)
|
G_DECLARE_FINAL_TYPE(MyItem, my_item, MY, ITEM, GObject)
|
||||||
|
|
||||||
// File name and path limits
|
|
||||||
const int name_max_length = 256;
|
|
||||||
const int path_max_length = 4096;
|
|
||||||
|
|
||||||
// Create a new item
|
// Create a new item
|
||||||
MyItem *my_item_new(const char *disp_name, const char *path,
|
MyItem *my_item_new(const char *disp_name, const char *path,
|
||||||
gboolean internal1);
|
gboolean internal1);
|
||||||
|
|
Loading…
Reference in New Issue