mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-10-31 10:56:49 +00:00 
			
		
		
		
	 a971f0718d
			
		
	
	
		a971f0718d
		
	
	
	
	
		
			
			Just get names, types and order from pahole; ditch offset & size since they're different on 32/64 bit. None of the structs has padding currently; if we really need that it can be implemented in the future. (Padding will raise an exception, so it won't break silently.) Signed-off-by: David Lamparter <equinox@diac24.net>
		
			
				
	
	
		
			140 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			140 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|   "cmd_element": {
 | |
|     "fields": [
 | |
|       {
 | |
|         "name": "string",
 | |
|         "type": "const char  *"
 | |
|       },
 | |
|       {
 | |
|         "name": "doc",
 | |
|         "type": "const char  *"
 | |
|       },
 | |
|       {
 | |
|         "name": "daemon",
 | |
|         "type": "int"
 | |
|       },
 | |
|       {
 | |
|         "name": "attr",
 | |
|         "type": "uint32_t"
 | |
|       },
 | |
|       {
 | |
|         "name": "func",
 | |
|         "type": "int *"
 | |
|       },
 | |
|       {
 | |
|         "name": "name",
 | |
|         "type": "const char  *"
 | |
|       },
 | |
|       {
 | |
|         "name": "xref",
 | |
|         "type": "struct xref"
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "xref": {
 | |
|     "fields": [
 | |
|       {
 | |
|         "name": "xrefdata",
 | |
|         "type": "struct xrefdata *"
 | |
|       },
 | |
|       {
 | |
|         "name": "type",
 | |
|         "type": "enum xref_type"
 | |
|       },
 | |
|       {
 | |
|         "name": "line",
 | |
|         "type": "int"
 | |
|       },
 | |
|       {
 | |
|         "name": "file",
 | |
|         "type": "const char  *"
 | |
|       },
 | |
|       {
 | |
|         "name": "func",
 | |
|         "type": "const char  *"
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "xref_install_element": {
 | |
|     "fields": [
 | |
|       {
 | |
|         "name": "xref",
 | |
|         "type": "struct xref"
 | |
|       },
 | |
|       {
 | |
|         "name": "cmd_element",
 | |
|         "type": "const struct cmd_element  *"
 | |
|       },
 | |
|       {
 | |
|         "name": "node_type",
 | |
|         "type": "enum node_type"
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "xref_logmsg": {
 | |
|     "fields": [
 | |
|       {
 | |
|         "name": "xref",
 | |
|         "type": "struct xref"
 | |
|       },
 | |
|       {
 | |
|         "name": "fmtstring",
 | |
|         "type": "const char  *"
 | |
|       },
 | |
|       {
 | |
|         "name": "priority",
 | |
|         "type": "uint32_t"
 | |
|       },
 | |
|       {
 | |
|         "name": "ec",
 | |
|         "type": "uint32_t"
 | |
|       },
 | |
|       {
 | |
|         "name": "args",
 | |
|         "type": "const char  *"
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "xref_threadsched": {
 | |
|     "fields": [
 | |
|       {
 | |
|         "name": "xref",
 | |
|         "type": "struct xref"
 | |
|       },
 | |
|       {
 | |
|         "name": "funcname",
 | |
|         "type": "const char  *"
 | |
|       },
 | |
|       {
 | |
|         "name": "dest",
 | |
|         "type": "const char  *"
 | |
|       },
 | |
|       {
 | |
|         "name": "thread_type",
 | |
|         "type": "uint32_t"
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "xrefdata": {
 | |
|     "fields": [
 | |
|       {
 | |
|         "name": "xref",
 | |
|         "type": "const struct xref  *"
 | |
|       },
 | |
|       {
 | |
|         "array": 16,
 | |
|         "name": "uid",
 | |
|         "type": "char"
 | |
|       },
 | |
|       {
 | |
|         "name": "hashstr",
 | |
|         "type": "const char  *"
 | |
|       },
 | |
|       {
 | |
|         "array": 2,
 | |
|         "name": "hashu32",
 | |
|         "type": "uint32_t"
 | |
|       }
 | |
|     ]
 | |
|   }
 | |
| } |