mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	intersection improvements
Add uri type
This commit is contained in:
		
							parent
							
								
									7a7ede96e5
								
							
						
					
					
						commit
						282995d0d0
					
				
					 4 changed files with 55 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -319,6 +319,7 @@ struct pod_type_name {
 | 
			
		|||
  { "invalid", "*Invalid*" },
 | 
			
		||||
  { "bool", "Bool" },
 | 
			
		||||
  { "int", "Int" },
 | 
			
		||||
  { "uri", "URI" },
 | 
			
		||||
  { "long", "Long" },
 | 
			
		||||
  { "float", "Float" },
 | 
			
		||||
  { "double", "Double" },
 | 
			
		||||
| 
						 | 
				
			
			@ -343,6 +344,9 @@ print_pod_value (uint32_t size, uint32_t type, void *body, int prefix)
 | 
			
		|||
    case SPA_POD_TYPE_INT:
 | 
			
		||||
      printf ("%-*sInt %d\n", prefix, "", *(int32_t *) body);
 | 
			
		||||
      break;
 | 
			
		||||
    case SPA_POD_TYPE_URI:
 | 
			
		||||
      printf ("%-*sURI %d\n", prefix, "", *(int32_t *) body);
 | 
			
		||||
      break;
 | 
			
		||||
    case SPA_POD_TYPE_LONG:
 | 
			
		||||
      printf ("%-*sLong %"PRIi64"\n", prefix, "", *(int64_t *) body);
 | 
			
		||||
      break;
 | 
			
		||||
| 
						 | 
				
			
			@ -440,6 +444,9 @@ print_format_value (uint32_t size, uint32_t type, void *body)
 | 
			
		|||
    case SPA_POD_TYPE_INT:
 | 
			
		||||
      fprintf (stderr, "%"PRIi32, *(int32_t *) body);
 | 
			
		||||
      break;
 | 
			
		||||
    case SPA_POD_TYPE_URI:
 | 
			
		||||
      fprintf (stderr, "%"PRIi32, *(int32_t *) body);
 | 
			
		||||
      break;
 | 
			
		||||
    case SPA_POD_TYPE_LONG:
 | 
			
		||||
      fprintf (stderr, "%"PRIi64, *(int64_t *) body);
 | 
			
		||||
      break;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue